COHERENT manpages

This page displays the COHERENT manpage for gettimeofday() [Berkeley time function].

List of available manpages
Index


gettimeofday() -- Sockets Function (libsocket)

Berkeley time function
#include <sys/time.h>
#include <time.h>
void gettimeofday (timeval, zone)
struct timeval *timeval;
char *zone;

Function gettimeofday() writes the current system time (i.e., the number of
seconds  since  January  1, 1970  GMT)  into  timeval->tv_sec.  It  also
initializes field timeval->tv_usec to zero.

gettimeofday() ignores argument zone. It returns nothing.

See Also

libsocket,
time [overview]