Returns the elapsed time since 00:00:00, January 1, 1970, in the structure pointed at by timeptr.
#include <timeb.h> int ftime (struct timeb *timeptr);Function Variants Compiling with the _DECC_V4_SOURCE and _VMS_V6_SOURCE feature- test macros defined enables a local-time-based entry point to this function that is equivalent to the behavior before OpenVMS Version 7.0.
typedef struct timeb { time_t time; unsigned short millitm; short timezone; short dstflag; };
The member time gives the time in seconds; the member millitm gives the fractional time in milliseconds; the members timezone and dstflag (daylight savings time flag) are always 0.
0 | Successful execution. The timeb_ t structure is filled in. |
-1 | Indicates an error. |