The high resolution timer feature provides access to a fine-grained counter source for applications. This counter is used for functions such as fine-grained ordering of events in a node, measurements of short segments of code and fault-detection mechanisms between nodes.
The high resolution timer has a resolution better than or equal to one microsecond, and does not roll over more than once per day.
The high resolution timer API is summarized in the following table:
Function |
Description |
---|---|
hrTimerValue() |
Get the current value of the fine-grained timer in ticks |
hrTimerFrequency() |
Get the frequency of the fine-grained timer in Hertz |
hrTimerPeriod() |
Get the difference between the minimum and the maximum of the possible values of the fine-grained timer in ticks |