40 #include "sys/clock.h"
44 static long startsecs=0,startmsecs=0;
50 gettimeofday(&tv,
NULL) ;
51 startmsecs=tv.tv_usec/1000;
61 gettimeofday(&tv, &tz);
63 return tv.tv_sec * 1000 + tv.tv_usec / 1000;
72 gettimeofday(&tv,
NULL) ;
73 msecs=tv.tv_usec/1000;
85 gettimeofday(&tv, &tz);
#define NULL
The null pointer.
void clock_init(void)
Initialize the clock library.
CCIF clock_time_t clock_time(void)
Get the current clock time.
CCIF unsigned long clock_seconds(void)
Get the current value of the platform seconds.
void clock_delay(unsigned int delay)
Obsolete delay function but we implement it here since some code still uses it.