#include <sys/timeb.h> int ftime(struct timeb *tp);
millitmmembers 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
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.