#include <sys/timeb.h> int ftime(struct timeb *buf);
This function stores the current time in the structure buf. The
format of struct timeb
is:
struct timeb { time_t time; /* seconds since 00:00:00 GMT 1/1/1970 */ unsigned short millitm; /* milliseconds */ short timezone; /* difference between GMT and local, minutes */ short dstflag; /* set if daylight savings time in affect */ };
Zero on success, nonzero on error.
not ANSI, not POSIX
struct timeb t; ftime(&t);
Go to the first, previous, next, last section, table of contents.