Miosix
2.01
|
#include <timeconversion.h>
Static Public Member Functions | |
static void | setTimerFrequency (unsigned int hz) |
static long long | tick2ns (long long tick) |
static long long | ns2tick (long long ns) |
static TimeConversionFactor | getTick2nsConversion () |
static TimeConversionFactor | getNs2tickConversion () |
This class allows to convert the time from the system timer ticks to nanoseconds and back. Notice that although this class only contains static member functions, it allows inlining of the conversion member functions while still encapsulating the conversion factors.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
ns | time point in nanoseconds |
Do not call this functions before setTimerFrequency() !
|
static |
Set the conversion factors based on the timer frequency.
hz | timer clock frequency in Hz |
|
inlinestatic |
tick | time point in timer ticks |
Do not call this functions before setTimerFrequency() !