Added a test for MUIA_Listview_SelectChange.
[AROS.git] / compiler / stdc / difftime.c
blob85987792b5903f63acf404419994b212651e5224
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
5 Return the number of seconds elapsed between time2 and time1.
6 */
8 /*****************************************************************************
10 NAME */
11 #ifndef AROS_NOFPU
12 #include <time.h>
14 double difftime (
16 /* SYNOPSIS */
17 time_t time2,
18 time_t time1)
20 /* FUNCTION
21 difftime() returns the number of seconds elapsed between
22 time time2 and time time1.
24 INPUTS
25 time2 - time value from which time1 is subtracted
26 time1 - time value that is subtracted from time2
28 RESULT
29 The number of seconds elapsed in double precision.
31 NOTES
33 EXAMPLE
34 time_t tt1, tt2;
35 double secs;
37 time (&tt1);
38 ...
39 time (&tt2);
41 secs = difftime(tt2, tt1);
43 BUGS
45 SEE ALSO
46 time(), ctime(), asctime(), localtime()
48 INTERNALS
50 ******************************************************************************/
52 return (double)(time2 - time1);
54 } /* difftime */
56 #else
58 void difftime(void)
60 return;
63 #endif /* AROS_NOFPU */