timespec Struct Reference

#include <stdapis/sys/timespec.h>

struct timespec
Public Attributes
longtv_nsec
time_t tv_sec

Detailed Description

The struct timespec structure represents an elapsed time. It is declared in `time.h' Includes the following members,

Member Attribute Documentation

tv_nsec

longtv_nsec

This is the rest of the elapsed time (a fraction of a second), represented as the number of nanoseconds. It is always less than one billion.

tv_sec

time_t tv_sec

This represents the number of whole seconds of elapsed time.