gtpc2m41C/C++ Language Support User's Guide

gettimeofday-Get Time

The gettimeofday function obtains the current time, expressed as seconds and microseconds since 00:00:00 Coordinated Universal Time (UTC), January 1, 1970, and stores it in a timeval structure.

Format

   #include <sysgtime.h>
   int gettimeofday(struct timeval *tp, struct timezone *tzp);
sysgtime.h

The sysgtime.h header file is used instead of the sys_time.h or sys/time.h header files.

Note:
See OS/390 C/C++ Run-Time Library Reference for more information about the gettimeofday function.