◆ timespec_get()

int timespec_get ( struct timespec *  p00_ts,
int  p00_base 

The timespec_get function sets the interval pointed to by p00_ts to hold the current calendar time based on the specified time base.

If p00_base is TIME_UTC, the tv_sec member is set to the number of seconds since an implementation defined epoch, truncated to a whole value and the tv_nsec member is set to the integral number of nanoseconds, rounded to the resolution of the system clock.

If the timespec_get function is successful it returns the nonzero value p00_base; otherwise, it returns zero.

Definition at line 260 of file p99_clib.h.