Syntax | #include <sys/time.h> int gettimeofday(struct timeval *tp, void *tzp); | |
Description |
tp points to a structure of type
or
and
If tp is a null pointer, the current time is not read. tzp must be a null pointer, otherwise the behavior is undefined. Information on time zones is contained in the environment variable | |
Return val. | 0 -1 | if successful. if an error occurs. |
Notes | Programs which want to be portable must not rely on the return value -1 in the event of an error. | |
See also |
|