HawkTracer  0.9.0
monotonic_clock.h File Reference

Go to the source code of this file.

Functions

HT_DECLS_BEGIN HT_API HT_TimestampNs ht_monotonic_clock_get_timestamp (void)
 Gets a current timestamp of a monotonic clock. More...
 

Function Documentation

◆ ht_monotonic_clock_get_timestamp()

HT_DECLS_BEGIN HT_API HT_TimestampNs ht_monotonic_clock_get_timestamp ( void  )

Gets a current timestamp of a monotonic clock.

The timestamp of this clock can not decrease as physical time moves forward. Although the timestamp doesn't represent wall clock time, returned values can be used e.g. for measuring intervals.

Returns
a current timestamp of the clock.