Next: Byte Order: ntohs Up: Utility Routines Previous: Storage: xMalloc and

Time

The x-kernel uses the same time structure as Unix:

xGetTime

Sets *t to the current time of day:

void xGetTime (XTime * t)

xAddTime

Sets the res to the sum of t1 and t2. Assumes t1 and t2 are in standard time format (i.e., does not check for integer overflow of the usec value.)

void xAddTime (XTime * res, XTime t1, XTime t2)

xSubTime

Sets the res to the difference of t1 and t2. The resulting value may be negative.

void xSubTime (XTime * res, XTime t1, XTime t2)


Tue Nov 29 16:28:56 MST 1994