Very simple class to measure elapsed time. More...
#include <simpletime.h>
Public Member Functions | |
cSimpleTime () | |
Constructor: store current time ("now") internally. | |
double | Elapsed (cSimpleTime const &other) const |
Return time in seconds elapsed between the time stored in the object and other. | |
double | Elapsed (void) const |
Return time in seconds elapsed between the time stored in the object and now. | |
long | Elapsed_us (cSimpleTime const &other) const |
Return time in micro seconds elapsed between the time stored in the object and other. | |
long | Elapsed_us (void) const |
Return time in micro seconds elapsed between the time stored in the object and now. | |
void | StoreNow (void) |
Store current time internally. | |
timeval | Timeval (void) |
Return the time stored as C struct timeval. | |
Protected Attributes | |
struct timeval | a_time |
Very simple class to measure elapsed time.
Definition at line 77 of file simpletime.h.
cSimpleTime::cSimpleTime | ( | ) | [inline] |
Constructor: store current time ("now") internally.
Definition at line 88 of file simpletime.h.
double cSimpleTime::Elapsed | ( | cSimpleTime const & | other | ) | const [inline] |
Return time in seconds elapsed between the time stored in the object and other.
Definition at line 149 of file simpletime.h.
double cSimpleTime::Elapsed | ( | void | ) | const [inline] |
Return time in seconds elapsed between the time stored in the object and now.
Definition at line 108 of file simpletime.h.
long cSimpleTime::Elapsed_us | ( | cSimpleTime const & | other | ) | const [inline] |
Return time in micro seconds elapsed between the time stored in the object and other.
Definition at line 159 of file simpletime.h.
long cSimpleTime::Elapsed_us | ( | void | ) | const [inline] |
Return time in micro seconds elapsed between the time stored in the object and now.
Definition at line 118 of file simpletime.h.
void cSimpleTime::StoreNow | ( | void | ) | [inline] |
Store current time internally.
Definition at line 96 of file simpletime.h.
timeval cSimpleTime::Timeval | ( | void | ) | [inline] |
Return the time stored as C struct timeval.
Definition at line 170 of file simpletime.h.
struct timeval cSimpleTime::a_time [protected] |
Definition at line 83 of file simpletime.h.