Very simple class to measure elapsed time. More...
#include <simpletime.h>
Public Member Functions | |
cSimpleTime () | |
Constructor: store current time ("now") internally. More... | |
double | Elapsed (void) const |
Return time in seconds elapsed between the time stored in the object and now. More... | |
double | Elapsed (cSimpleTime const &other) const |
Return time in seconds elapsed between the time stored in the object and other. More... | |
long | Elapsed_us (void) const |
Return time in micro seconds elapsed between the time stored in the object and now. More... | |
long | Elapsed_us (cSimpleTime const &other) const |
Return time in micro seconds elapsed between the time stored in the object and other. More... | |
void | StoreNow (void) |
Store current time internally. More... | |
timeval | Timeval (void) |
Return the time stored as C struct timeval. More... | |
Protected Attributes | |
struct timeval | a_time |
Very simple class to measure elapsed time.
Definition at line 84 of file simpletime.h.
|
inline |
Constructor: store current time ("now") internally.
Definition at line 95 of file simpletime.h.
|
inline |
Return time in seconds elapsed between the time stored in the object and now.
Definition at line 115 of file simpletime.h.
|
inline |
Return time in seconds elapsed between the time stored in the object and other.
Definition at line 156 of file simpletime.h.
|
inline |
Return time in micro seconds elapsed between the time stored in the object and now.
Definition at line 125 of file simpletime.h.
|
inline |
Return time in micro seconds elapsed between the time stored in the object and other.
Definition at line 166 of file simpletime.h.
|
inline |
Store current time internally.
Definition at line 103 of file simpletime.h.
|
inline |
Return the time stored as C struct timeval.
Definition at line 177 of file simpletime.h.
|
protected |
Definition at line 90 of file simpletime.h.