lwes_time_functions.h File Reference


Detailed Description

Functions for getting times in milliseconds since epoch.

Go to the source code of this file.

Functions

LWES_INT_64 currentTimeMillisLongLong (void)
 Get time in milliseconds.
void convertUnixLongLongTimeToTimeval (LWES_INT_64 timestamp, struct timeval *t)
 Convert to timeval.


Function Documentation

LWES_INT_64 currentTimeMillisLongLong void   ) 
 

Get time in milliseconds.

LWES started in Java, and in Java we use milliseconds since epoch for times. So here is a convenience methods for getting the current time in milliseconds since epoch

Returns:
the time since epoch in milliseconds

void convertUnixLongLongTimeToTimeval LWES_INT_64  timestamp,
struct timeval *  t
 

Convert to timeval.

Converting an LWES_INT_64 to a struct timeval. This is useful for printing the time.

Parameters:
[in] timestamp a timestamp from currentTimeMillisLongLong ()
[out] t a struct timeval structure with the value from timestamp


Generated on Thu Aug 21 07:18:55 2008 for lwes by  doxygen 1.4.6