#include <TestDoubleOneShotTimerFactory.h>
◆ TestDoubleOneShotTimer()
TestDoubleOSWrapper::TestDoubleOneShotTimer::TestDoubleOneShotTimer |
( |
| ) |
|
|
inline |
◆ ~TestDoubleOneShotTimer()
virtual TestDoubleOSWrapper::TestDoubleOneShotTimer::~TestDoubleOneShotTimer |
( |
| ) |
|
|
inlinevirtual |
◆ getName()
virtual const char * TestDoubleOSWrapper::TestDoubleOneShotTimer::getName |
( |
| ) |
const |
|
inlinevirtual |
◆ isStarted()
virtual bool TestDoubleOSWrapper::TestDoubleOneShotTimer::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.
◆ setCreateArgs()
void TestDoubleOSWrapper::TestDoubleOneShotTimer::setCreateArgs |
( |
OSWrapper::Runnable * |
r, |
|
|
const char * |
name |
|
) |
| |
|
inline |
◆ setName()
virtual void TestDoubleOSWrapper::TestDoubleOneShotTimer::setName |
( |
const char * |
name | ) |
|
|
inlinevirtual |
◆ start()
virtual void TestDoubleOSWrapper::TestDoubleOneShotTimer::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()
virtual void TestDoubleOSWrapper::TestDoubleOneShotTimer::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.
◆ m_name
const char* TestDoubleOSWrapper::TestDoubleOneShotTimer::m_name |
|
protected |
◆ m_runnable
The documentation for this class was generated from the following file: