#include <DTime.h>
Public Member Functions | |
DTime (int usec=0) | |
DTime (int sec, int usec) | |
DTime (int min, int sec, int usec) | |
DTime (int hr, int min, int sec, int usec) | |
void | start () |
Starts the timer. | |
DTime | reset () |
DTime | elapsed () const |
time since last reset or start | |
float | hour () const |
float | minute () const |
float | sec () const |
float | msec () const |
int | usec () const |
DTime | operator- (const DTime &b) |
DTime & | operator-= (const DTime &b) |
DTime | operator+ (const DTime &b) |
DTime & | operator+= (const DTime &b) |
bool | operator> (const DTime &b) |
bool | operator>= (const DTime &b) |
bool | operator< (const DTime &b) |
bool | operator<= (const DTime &b) |
bool | operator== (const DTime &b) |
bool | operator!= (const DTime &b) |
Static Public Member Functions | |
DTime | current () |
|
|
|
|
|
|
|
|
|
|
|
time since last reset or start
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Resets the timer and returns the time since the last reset or start
|
|
|
|
Starts the timer.
|
|
|