◆ WindowsOneShotTimer()
WindowsOSWrapper::WindowsOneShotTimer::WindowsOneShotTimer |
( |
OSWrapper::Runnable * |
r, |
|
|
const char * |
name |
|
) |
| |
|
inline |
◆ ~WindowsOneShotTimer()
WindowsOSWrapper::WindowsOneShotTimer::~WindowsOneShotTimer |
( |
| ) |
|
|
inline |
◆ getName()
const char * WindowsOSWrapper::WindowsOneShotTimer::getName |
( |
| ) |
const |
|
inlinevirtual |
◆ isStarted()
bool WindowsOSWrapper::WindowsOneShotTimer::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::OneShotTimer.
◆ setName()
void WindowsOSWrapper::WindowsOneShotTimer::setName |
( |
const char * |
name | ) |
|
|
inlinevirtual |
◆ start()
void WindowsOSWrapper::WindowsOneShotTimer::start |
( |
unsigned long |
timeInMillis | ) |
|
|
inlinevirtual |
Start the timer.
After the timeInMillis elapses, the timer calls Runnable::run() specified at create(). When the timer is fired one time, the timer is stopped.
- Parameters
-
timeInMillis | Time in milliseconds until the timer is fired |
- Note
- If the timer is already started, do nothing.
-
If the timer is stopped, you can start() again.
Implements OSWrapper::OneShotTimer.
◆ stop()
void WindowsOSWrapper::WindowsOneShotTimer::stop |
( |
| ) |
|
|
inlinevirtual |
Stop the timer.
Before the timer is fired, it stops the timer.
- Note
- If the timer is already stopped, do nothing.
Implements OSWrapper::OneShotTimer.
The documentation for this class was generated from the following file: