|
wpi-32u4-library
|
#include <Timer.h>
Public Member Functions | |
| Timer (unsigned long interval) | |
| bool | isExpired () |
| void | reset () |
| void | reset (unsigned long newInterval) |
Private Attributes | |
| unsigned long | expiredTime |
| unsigned long | timeInterval |
| Timer::Timer | ( | unsigned long | interval | ) |
Create a timer that will expire every "interval"
Definition at line 7 of file Timer.cpp.
References expiredTime, and timeInterval.
| bool Timer::isExpired | ( | ) |
Check if the timer is expired, that is the current time is past the expired time.
Definition at line 35 of file Timer.cpp.
References expiredTime, and timeInterval.
| void Timer::reset | ( | ) |
Reset the timer to that the expired time is the current time + interval
Definition at line 16 of file Timer.cpp.
References expiredTime, and timeInterval.
Referenced by reset().
| void Timer::reset | ( | unsigned long | newInterval | ) |
Change the timer interval to "NewInterval" then reset the timer to that the expired time is the current time + interval
Definition at line 25 of file Timer.cpp.
References reset(), and timeInterval.
|
private |
Definition at line 12 of file Timer.h.
Referenced by isExpired(), reset(), and Timer().
|
private |
Definition at line 13 of file Timer.h.
Referenced by isExpired(), reset(), and Timer().