sl@0: /* sl@0: * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * FUNCTION sl@0: * <>---subtract two times sl@0: * INDEX sl@0: * difftime sl@0: * ANSI_SYNOPSIS sl@0: * #include sl@0: * double difftime(time_t <[tim1]>, time_t <[tim2]>); sl@0: * TRAD_SYNOPSIS sl@0: * #include sl@0: * double difftime(<[tim1]>, <[tim2]>) sl@0: * time_t <[tim1]>; sl@0: * time_t <[tim2]>; sl@0: * Subtracts the two times in the arguments: `<<<[tim1]> - <[tim2]>>>' sl@0: * that are in seconds. sl@0: * RETURNS sl@0: * The difference (in seconds) between <[tim2]> and <[tim1]>, as a <>. sl@0: * PORTABILITY sl@0: * ANSI C requires <>, and defines its result to be in seconds sl@0: * in all implementations. sl@0: * <> requires no supporting OS subroutines. sl@0: * sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #include sl@0: sl@0: /** sl@0: Return difference between two times. sl@0: Calculates the time difference between tim1 and tim2 in seconds. sl@0: @return The difference in seconds between the two times specified. sl@0: @param tim2 Latter time sl@0: @param tim1 Former time sl@0: */ sl@0: EXPORT_C double sl@0: difftime (time_t tim1, time_t tim2) __SOFTFP sl@0: { sl@0: return ((double) (tim1 - tim2)); sl@0: }