timespec_t

Contains time information, expressed in seconds and nanoseconds.

Service:Time

Syntax

  #include <time.h>
  
  typedef struct timespec
  {
     time_t   tv_sec; 
     long     tv_nsec; 
  } timespec_t, timestrc_t;
  

Fields

tv_sec

Specifies the whole number of seconds since the epoch.

tv_nsec

Specifies the fraction of a second in nanoseconds. On NetWare, this will never be less than one millisecond (one million nanoseconds).

Remarks

The synch.h file also defines the timespec structure to be a timestruct_t structure.