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);