ts_util
- timespec
Manipulation Utilities
The TS_UTIL functions allow you to add, subtract, and compare POSIX
timespec
s, which represent time in seconds and nanoseconds.
Public Procedures
tsAdd()
- adds two timespec
s.
tsCompare()
- compares two timespec
s.
tsCreate()
- creates a timespec
from a time
expressed in seconds and nanoseconds.
tsCreateF()
- creates a timespec
from a time
expressed as a floating-point number of seconds.
tsFloat()
- converts a timespec
to a
floating-point number of seconds.
tsShow()
- returns a printable representation of a
timespec
.
tsSubtract()
- subtracts one timespec
from
another.
tsTOD()
- returns the current time-of-day (GMT).
Source Files
-
ts_util.c
-
ts_util.h
(See libgpl
for the
complete source, including support routines and build files.)