niraja_npi
October 8th, 2002, 06:26 AM
Hi All,
I want to implement the gettimeofday functionality in WinXP using VC++ as implemented in unix environment.
Man page description of Unix
The gettimeofday() function gets and the settimeofday()
function sets the system's notion of the current time. The
current time is expressed in elapsed seconds and
microseconds since 00:00 Universal Coordinated Time, January
1, 1970. The resolution of the system clock is hardware
dependent; the time may be updated continuously or in clock
ticks.
The tp argument points to a timeval structure, which
includes the following members:
long tv_sec; /* seconds since Jan. 1, 1970 */
long tv_usec; /* and microseconds */
If tp is a null pointer, the current time information is not
returned or set.
Best Regards,
Niraj Agarwal
I want to implement the gettimeofday functionality in WinXP using VC++ as implemented in unix environment.
Man page description of Unix
The gettimeofday() function gets and the settimeofday()
function sets the system's notion of the current time. The
current time is expressed in elapsed seconds and
microseconds since 00:00 Universal Coordinated Time, January
1, 1970. The resolution of the system clock is hardware
dependent; the time may be updated continuously or in clock
ticks.
The tp argument points to a timeval structure, which
includes the following members:
long tv_sec; /* seconds since Jan. 1, 1970 */
long tv_usec; /* and microseconds */
If tp is a null pointer, the current time information is not
returned or set.
Best Regards,
Niraj Agarwal