Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
LowPowerTimer Class Reference
[Drivers]
Low power timer. More...
#include <LowPowerTimer.h>
Inherits mbed::Timer, and NonCopyable< LowPowerTimer >.
Public Member Functions | |
| void | start () |
| Start the timer. | |
| void | stop () |
| Stop the timer. | |
| void | reset () |
| Reset the timer to 0. | |
| float | read () |
| Get the time passed in seconds. | |
| int | read_ms () |
| Get the time passed in milliseconds. | |
| int | read_us () |
| Get the time passed in microseconds. | |
| operator float () | |
| An operator shorthand for read() | |
| us_timestamp_t | read_high_resolution_us () |
| Get in a high resolution type the time passed in microseconds. | |
Private Member Functions | |
| MBED_DEPRECATED ("Invalid copy construction of a NonCopyable resource.") NonCopyable(const NonCopyable &) | |
| NonCopyable copy constructor. | |
| MBED_DEPRECATED ("Invalid copy assignment of a NonCopyable resource.") NonCopyable &operator | |
| NonCopyable copy assignment operator. | |
Detailed Description
Low power timer.
- Note:
- Synchronization level: Interrupt safe
Definition at line 35 of file LowPowerTimer.h.
Member Function Documentation
| operator float | ( | ) | [inherited] |
An operator shorthand for read()
| float read | ( | ) | [inherited] |
Get the time passed in seconds.
- Returns:
- Time passed in seconds
| us_timestamp_t read_high_resolution_us | ( | ) | [inherited] |
Get in a high resolution type the time passed in microseconds.
Returns a 64 bit integer.
| int read_ms | ( | ) | [inherited] |
Get the time passed in milliseconds.
- Returns:
- Time passed in milliseconds
| int read_us | ( | ) | [inherited] |
Get the time passed in microseconds.
- Returns:
- Time passed in microseconds
| void reset | ( | ) | [inherited] |
Reset the timer to 0.
If it was already running, it will continue
| void start | ( | ) | [inherited] |
Start the timer.
| void stop | ( | ) | [inherited] |
Stop the timer.
Generated on Wed Jul 13 2022 01:33:25 by
1.7.2