get the current time

C Specification

NLboolean nlTime(NLtime *ts)



[in/out]Pointer to the NLtime structure to update.


nlTime returns the seconds since midnight, January 1, 1970 just like time(). However, ts is also updated with the milliseconds and microseconds since the last whole second passed by. On most platforms nlTime should have a resolution close to one microsecond, but on others it may only be accurate to one millisecond. There is no guaranteed accuracy on any platform.

Return values

NL_TRUE if no error occurs, otherwise NL_FALSE, and the specific error code can be retrieved by calling nlGetError

Error codes

NL_NULL_POINTER : A NULL pointer was passed to this function.

See also


Back to the HawkNL index page

Go directly to the main HawkNL page at Hawk Software

© 2000-2002 Phil Frisbie.

Valid XHTML 1.0!