ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
Wait.cpp
Go to the documentation of this file.
1#include "Wait.h"
2
3
4Wait::Wait(unsigned long millisToWait) {
5 this->millisToWait = millisToWait;
6}
7
8void Wait::Reset() {
10}
11
14}
Utility class for handling non-blocking wait operations.
Implements a generic Kalman Filter for 1D data.
void Reset()
Resets the wait timer to start counting again.
Definition Wait.cpp:8
Wait(unsigned long millisToWait)
Constructor to initialize Wait with a duration.
Definition Wait.cpp:4
unsigned long previousMillis
Stores the last recorded time in milliseconds.
Definition Wait.h:20
unsigned long millisToWait
Duration to wait in milliseconds.
Definition Wait.h:21
bool IsFinished()
Checks if the specified duration has elapsed.
Definition Wait.cpp:12