/[projet1]/public/pc/tools/osdk/main/Osdk/_final_/include2/time.h
Defence Force logotype

Contents of /public/pc/tools/osdk/main/Osdk/_final_/include2/time.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1159 - (show annotations)
Sun Aug 10 18:31:35 2014 UTC (5 years, 5 months ago) by dbug
File MIME type: text/plain
File size: 548 byte(s)


1 /* time.h */
2
3 #ifndef _TIME_
4 #define _TIME_
5
6 #ifndef NULL
7 #define NULL (0) /* for contiki */
8 #endif
9
10
11 typedef unsigned clock_t;
12
13 #define CLOCKS_PER_SEC 100
14 #define CLK_TCK 100 /* For contiki */
15
16 /* clock returns the number of clock ticks since an arbitrary time.
17 This is useful for measuring the time elapsed since an earlier call.
18 E.g:
19 clock_t TIME0, TIME1;
20
21 TIME0 = clock();
22 ....
23 TIME1 = clock();
24 printf("duration : %fs\n", (double)( TIME1-TIME0 ) / CLOCKS_PER_SEC);
25 */
26
27 clock_t clock();
28 #endif /* _TIME_ */

  ViewVC Help
Powered by ViewVC 1.1.26