![]() |
ProtoTracer
1.0
Real-time 3D rendering and animation engine
|
Provides a mechanism to wait for a specified duration without blocking. More...
#include <Wait.h>
Public Member Functions | |
Wait (unsigned long millisToWait) | |
Constructor to initialize Wait with a duration. | |
void | Reset () |
Resets the wait timer to start counting again. | |
bool | IsFinished () |
Checks if the specified duration has elapsed. | |
Private Attributes | |
unsigned long | previousMillis |
Stores the last recorded time in milliseconds. | |
unsigned long | millisToWait |
Duration to wait in milliseconds. | |
Provides a mechanism to wait for a specified duration without blocking.
Constructor to initialize Wait with a duration.
millisToWait | The duration to wait in milliseconds. |
Definition at line 4 of file Wait.cpp.
References millisToWait.
bool IsFinished | ( | ) |
Checks if the specified duration has elapsed.
Definition at line 12 of file Wait.cpp.
References millisToWait, and previousMillis.
void Reset | ( | ) |
Resets the wait timer to start counting again.
Definition at line 8 of file Wait.cpp.
References previousMillis.
Duration to wait in milliseconds.
Definition at line 21 of file Wait.h.
Referenced by IsFinished(), and Wait().
Stores the last recorded time in milliseconds.
Definition at line 20 of file Wait.h.
Referenced by IsFinished(), and Reset().