nrfcxx
0.1.0
C++-17 Framework for Nordic nRF5 Devices
|
Class supporting short-term duration measurements. More...
#include <nrfcxx/clock.hpp>
Public Member Functions | |
unsigned int | captured () const |
Return the tick corresponding to the captured time. | |
void | reset () |
Capture the current time. | |
unsigned int | delta () const |
Return ticks since the captured time. | |
unsigned int | delta (unsigned int tick) const |
Return ticks between captured time and tick . | |
unsigned int | delta_reset () |
Return ticks since the captured time and reset captured time to now. | |
Protected Attributes | |
unsigned int | capture_utt24 |
Class supporting short-term duration measurements.
On construction this captures the current value of now24(). delta() can be used to get the number of ticks since the captured time. delta_reset() is similar, but resets the capture time to the current time, allowing timing of multiple steps of a process.