|
ginnOS
The reference: libc, the libraries and the kernel
|
struct timeval and gettimeofday. More...
Go to the source code of this file.
Data Structures | |
| struct | timeval |
Macros | |
| #define | GINNOS_TIMEVAL |
Functions | |
| int | gettimeofday (struct timeval *tv, void *tz) |
| the wall-clock time in seconds and microseconds since 1970. | |
| int | utimes (const char *path, const struct timeval times[2]) |
| set a file's access and modification times (times[0], times[1]) in microseconds; with times NULL, both to the time now. | |
struct timeval and gettimeofday.
it also gives select() and fd_set (sys/select.h), as on other Unix systems.
| #define GINNOS_TIMEVAL |
| int gettimeofday | ( | struct timeval * | tv, |
| void * | tz ) |
the wall-clock time in seconds and microseconds since 1970.
| tv | receives it. |
| tz | must be NULL (there are no time zones). |
| int utimes | ( | const char * | path, |
| const struct timeval | times[2] ) |
set a file's access and modification times (times[0], times[1]) in microseconds; with times NULL, both to the time now.