◆ WindowsPeriodicTimer()
WindowsOSWrapper::WindowsPeriodicTimer::WindowsPeriodicTimer |
( |
OSWrapper::Runnable * |
r, |
|
|
unsigned long |
periodInMillis, |
|
|
const char * |
name |
|
) |
| |
|
inline |
◆ ~WindowsPeriodicTimer()
WindowsOSWrapper::WindowsPeriodicTimer::~WindowsPeriodicTimer |
( |
| ) |
|
|
inline |
◆ getName()
const char * WindowsOSWrapper::WindowsPeriodicTimer::getName |
( |
| ) |
const |
|
inlinevirtual |
◆ getPeriodInMillis()
unsigned long WindowsOSWrapper::WindowsPeriodicTimer::getPeriodInMillis |
( |
| ) |
const |
|
inlinevirtual |
◆ isStarted()
bool WindowsOSWrapper::WindowsPeriodicTimer::isStarted |
( |
| ) |
const |
|
inlinevirtual |
Return true if the timer is started.
- Return values
-
true | The timer is already started |
false | The timer is already stopped |
Implements OSWrapper::PeriodicTimer.
◆ setName()
void WindowsOSWrapper::WindowsPeriodicTimer::setName |
( |
const char * |
name | ) |
|
|
inlinevirtual |
◆ start()
void WindowsOSWrapper::WindowsPeriodicTimer::start |
( |
| ) |
|
|
inlinevirtual |
Start the timer.
When the timer period elapses, the timer calls Runnable::run() specified at create(). The timer calls the Runnable::run() per period.
- Note
- If the timer is already started, do nothing.
-
If the timer is stopped, you can start() again.
Implements OSWrapper::PeriodicTimer.
◆ stop()
void WindowsOSWrapper::WindowsPeriodicTimer::stop |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: