#include <mtimer.h>
Public Member Functions | |
| MTIMER () | |
| ~MTIMER () | |
| void | Clear () |
| void | GetString (MISTRING &string) const |
| double | GetValue () const |
| bool | IsOn () const |
| void | Report (MISTRING &string, TEXTID textid=TEXTID__None) const |
| void | Report (MISTRING &string, const char *group, const char *key) const |
| void | ReportShort (MISTRING &string, int places=0) const |
| void | Start () |
| void | Set (double seconds) |
| void | Stop () |
Timer is accurate to 100ns on Windows and 1ms on other platforms.
Definition at line 52 of file mtimer.h.
|
|
Default constructor.
|
|
|
Destructor.
|
|
|
Clear timer. Also stops timer. |
|
|
|
|
|
Get the value of the timer in seconds.
|
|
|
Determine if timer is currently 'on'.
|
|
||||||||||||||||
|
Report "Time to ???: xxx xxx xxx".
|
|
||||||||||||
|
Report "Time to ???: xxx xxx xxx". The ??? part is retrieved from the text resource file using the TEXTID provided. The rest of the message is built from text resource strings and the actual time. If TEXTID__None is specified then only the time is reported. |
|
||||||||||||
|
Report in "00:00" format.
|
|
|
Set the value of the timer.
|
|
|
Start timer.
|
|
|
Stop timer. Does not clear the timer. |
1.3.4-20031026