timespec

Time-specification structure

Synopsis:

#include <time.h>

struct timespec {
   time_t   tv_sec;
   long     tv_nsec;
}

Since:

BlackBerry 10.0.0

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
The number of nanoseconds.

Classification:

POSIX 1003.1

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus