#include <TimeUtil.h>
Implemented using virtual functions to allow the simulator to provide alternate implementations of the time functions.
Definition at line 31 of file TimeUtil.h.
Static Public Member Functions | |
static uint64_t | timeu () |
return the current time as microseconds. | |
static time_t | time () |
return the current time as seconds. | |
static double | timed () |
return the current time as a double value in seconds and partial microseconds. | |
static void | fillTimeval (uint64_t t, struct timeval &tv) |
fills a timeval based on a timestamp t. | |
static uint64_t | timeu (const struct timeval &tv) |
returns the number of microseconds represented by timeval tv . | |
static m_suseconds_t | timediff (const timeval &start, const timeval &end) |
return the number of microseconds between start and end. |