The TS_UTIL functions allow you to add, subtract, and compare POSIX
timespecs, which represent time in seconds and nanoseconds.
tsAdd()- adds two
tsCompare()- compares two
tsCreate()- creates a
timespecfrom a time expressed in seconds and nanoseconds.
tsCreateF()- creates a
timespecfrom a time expressed as a floating-point number of seconds.
tsFloat()- converts a
timespecto a floating-point number of seconds.
tsShow()- returns a printable representation of a
tsSubtract()- subtracts one
tsTOD()- returns the current time-of-day (GMT).
libgpl for the
complete source, including support routines and build files.)