The millisecond timer can be used for timeouts up to 60000 milliseconds. More...
#include <Ports.h>
Public Member Functions | |
| byte | poll (word ms=0) |
| poll until the timer fires More... | |
| word | remaining () const |
| Return the number of milliseconds before the timer will fire. | |
| byte | idle () const |
| Returns true if the timer is not armed. | |
| void | set (word ms) |
| set the one-shot timeout value More... | |
The millisecond timer can be used for timeouts up to 60000 milliseconds.
Setting the timeout to zero disables the timer.
| byte MilliTimer::poll | ( | word | ms = 0 | ) |
poll until the timer fires
| ms | Periodic repeat rate of the time, omit for a one-shot timer. |
| void MilliTimer::set | ( | word | ms | ) |
set the one-shot timeout value
| ms | Timeout value. Timer stops once the timer has fired. |