timespec

QNX SDP8.0C Library ReferenceAPIDeveloper

Time-specification structure

Synopsis:

#include <time.h>

struct timespec {
   time_t   tv_sec;
   long     tv_nsec;
}

Description:

The timespec structure specifies a time in seconds and nanoseconds. The members include:

tv_sec
The number of seconds. If specifying an absolute time, this member is the number of seconds since 1970.
tv_nsec
Denotes the partial second beyond tv_sectv_sec, expressed as nanoseconds.
For most uses, only values between 0 - 1e9 are valid.

Classification:

POSIX 1003.1

Page updated: