Read the number of high-precision timer ticks since boot, not including time spent suspended.
#include <zircon/syscalls.h> zx_instant_mono_ticks_t zx_ticks_get(void);
zx_ticks_get() returns the number of high-precision timer ticks since boot, not including time spent suspended.
These ticks may be processor cycles, high speed timer, profiling timer, etc. They are not guaranteed to continue advancing when the system is asleep.
TODO(https://fxbug.dev/42107318)
zx_ticks_get() returns the number of high-precision timer ticks since boot.
zx_ticks_get() does not report any error conditions.
The returned value may be highly variable. Factors that can affect it include:
All Fuchsia systems use an invariant-rate ticks clock, which means that the number of ticks per second is constant regardless of changes in processor speed or migration between processors.