__time - get time of day
Standard C Library (libc, -lc)
#include <time.h>
int
__time(time_t *seconds,
uint32_t *nanoseconds);
The current time (in seconds and nanoseconds since midnight GMT on January 1, 1970) is retrieved. If seconds and/or nanoseconds are non-null, the corresponding components of the time are stored through those pointers.
__time returns 0 on success. On error, -1 is returned, and errno is set to indicate the error.
The following error is the only way __time should be capable of failing.
EFAULT | seconds or nanoseconds was an invalid non-NULL address. |