KNI::Timer Class Reference
#include <Timer.h>
List of all members.
Detailed Description
Provides a stop-watch-like class with a resolution of milliseconds.
Definition at line 41 of file Timer.h.
Constructor & Destructor Documentation
KNI::Timer::Timer |
( |
long |
timeout |
) |
|
Member Function Documentation
long KNI::Timer::_ElapsedTime |
( |
|
) |
const [private] |
bool KNI::Timer::Elapsed |
( |
|
) |
const |
Returns true if timer is elapsed.
Definition at line 69 of file Timer.cpp.
long KNI::Timer::ElapsedTime |
( |
|
) |
const |
Returns the elapsed time.
Definition at line 74 of file Timer.cpp.
void KNI::Timer::Set |
( |
long |
timeout |
) |
|
void KNI::Timer::Set_And_Start |
( |
long |
timeout |
) |
|
void KNI::Timer::Start |
( |
|
) |
|
void KNI::Timer::WaitUntilElapsed |
( |
|
) |
const |
Block until time's up.
WARNING: possible race-condition in sleep() if it takes longer than 1ms between the check and the real sleep.
Definition at line 78 of file Timer.cpp.
Member Data Documentation
The documentation for this class was generated from the following files: