• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Quick question regarding gettimeofday() function in C...

JonTheBaller

Golden Member
#include <sys/time.h>

int gettimeofday(struct timeval *tp, void *tzp);

The gettimeofday() function obtains the current time, expressed as seconds and microseconds since 00:00 Coordinated Universal Time (UTC), January 1, 1970, and stores it in the timeval structure pointed to by tp. The resolution of the system clock is unspecified.

If tzp is not a null pointer, the behaviour is unspecified.

Can someone explain how it works in an example?
 
The second link of this search

Produced this code

rolleye.gif
 
Back
Top