The TV_UTIL functions allow you to add, subtract, and compare UNIX
timevals, which represent time in seconds and microseconds.
tvAdd()- adds two
tvCompare()- compares two
tvCreate()- creates a
timevalfrom a time expressed in seconds and microseconds.
tvCreateF()- creates a
timevalfrom a time expressed as a floating-point number of seconds.
tvFloat()- converts a
timevalto a floating-point number of seconds.
tvShow()- returns a printable representation of a
tvSubtract()- subtracts one
tvT2TM()- converts seconds since 1970 to broken-down time.
tvTM2T()- converts broken-down time to seconds since 1970.
tvTOD()- returns the current time-of-day (GMT).
tvTruncate()- truncates a
timevalto the beginning of the year, the day, the hour, etc.
xdr_timeval()- encodes/decodes a
timevalin XDR format.
libgpl for the
complete source, including support routines and build files.)