TimeUtil Class Reference
[Utils]

#include <TimeUtil.h>

Collaboration diagram for TimeUtil:

Collaboration graph
[legend]

List of all members.


Detailed Description

A Mace-friendly class for getting the time of day.

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.

The documentation for this class was generated from the following files:

Generated on Sat Oct 4 21:30:31 2008 for Mace Library by  doxygen 1.5.5