Skyward boardcore
|
Utility for microsecond timestamp values. More...
Functions | |
uint64_t | getTimestamp () |
Returns the current timer value in microseconds. | |
Utility for microsecond timestamp values.
miosix::getTime()
which has nanosecond resolution. The class is kept for compatibility reasons and should be removed in the future.The old timer used a 32bit value and the TIM2 or TIM5 hardware peripherals, at a frequency of 250KHz. This way the timer had a resolution of 4us, it would overflow after 4.7 hours and only required a 2-bit shift left operation to convert from counter tick to microseconds.
|
inline |
Returns the current timer value in microseconds.
Definition at line 57 of file TimestampTimer.h.