GETTIMEOFDAY(3) Library Functions Manual GETTIMEOFDAY(3)
NAME
gettimeofday — get
the date and time
SYNOPSIS
#include <sys/time.h> int gettimeofday(struct timeval *tp, void *tzp);
DESCRIPTION
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.
RETURN VALUE
The gettimeofday() function returns 0 and no value is reserved to indicate an error.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
ctime(3) , ftime(3) , <sys/time.h> .
February 1997 posix.fail