EMIPLIB
|
This class is used for timing purposes. More...
#include <miptime.h>
Public Member Functions | |
MIPTime (real_t t=0.0) | |
Creates a time object containing the time corresponding to t . | |
MIPTime (int64_t seconds, int64_t microSeconds) | |
Creates a time object containing the time corresponding to the two parameters. | |
int64_t | getSeconds () const |
Returns the number of seconds contained in the time object. | |
int64_t | getMicroSeconds () const |
Returns the number of microseconds contained in the time object. | |
real_t | getValue () const |
Returns a real value describing the time contained in this object. | |
Static Public Member Functions | |
static MIPTime | getCurrentTime () |
Returns a MIPTime object containing the current time. | |
static void | wait (const MIPTime &delay) |
Pauses the current thread for the time contained in delay . |
This class provides some time handling functions.
MIPTime::MIPTime | ( | real_t | t = 0.0 | ) | [inline] |
Referenced by getCurrentTime().
MIPTime::MIPTime | ( | int64_t | seconds, |
int64_t | microSeconds | ||
) | [inline] |
int64_t MIPTime::getMicroSeconds | ( | ) | const [inline] |
Referenced by wait().
int64_t MIPTime::getSeconds | ( | ) | const [inline] |
Referenced by wait().
real_t MIPTime::getValue | ( | ) | const [inline] |
Referenced by wait().
void MIPTime::wait | ( | const MIPTime & | delay | ) | [inline, static] |
References getMicroSeconds(), getSeconds(), and getValue().