#include <Timer.h>
Public Member Functions | |
| Timer () | |
| Timer (long timeout) | |
| void | Set (long timeout) |
| void | Start () |
| void | Set_And_Start (long timeout) |
| bool | Elapsed () const |
| Returns true if timer is elapsed. | |
| long | ElapsedTime () const |
| Returns the elapsed time. | |
| void | WaitUntilElapsed () const |
| Block until time's up. | |
Private Member Functions | |
| long | _ElapsedTime () const |
| Platform specific implementation of ElapsedTime(). | |
Private Attributes | |
| long | _timeout |
| timeval | _ct |
Definition at line 41 of file Timer.h.
| KNI::Timer::Timer | ( | ) |
| KNI::Timer::Timer | ( | long | timeout | ) |
| long KNI::Timer::_ElapsedTime | ( | ) | const [private] |
Platform specific implementation of ElapsedTime().
| bool KNI::Timer::Elapsed | ( | ) | const |
Returns true if timer is elapsed.
| long KNI::Timer::ElapsedTime | ( | ) | const |
Returns the elapsed time.
| 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.
struct timeval KNI::Timer::_ct [private] |
long KNI::Timer::_timeout [private] |
1.4.7