↑ Software ↑

GEONius.com
6-Jan-2004
 E-mail 

ts_util - timespec Manipulation Utilities

The TS_UTIL functions allow you to add, subtract, and compare POSIX timespecs, which represent time in seconds and nanoseconds.


Public Procedures

tsAdd() - adds two timespecs.
tsCompare() - compares two timespecs.
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.)


Alex Measday  /  E-mail