|
|
#include <sys/timeb.h> int ftime(struct timeb *tp);
time
and millitm
members of the timeb structure pointed to by tp to
contain the seconds and milliseconds portions, respectively, of
the current time in seconds since 00:00:00 UTC (Coordinated
Universal Time), January 1, 1970.
The contents of the timezone
and dstflag
members
of tp after a call to ftime are unspecified.
The millisecond value usually has a granularity greater than one due to the resolution of the system clock. Depending on any granularity (particularly a granularity of one) renders code non-portable.