litl_time_t litl_get_time_process_cputime()
Uses clock_gettime(CLOCK_PROCESS_CPUTIME)
litl_time_t litl_get_time_realtime()
Uses clock_gettime(CLOCK_REALTIME)
litl_time_t litl_get_time_thread_cputime()
Uses clock_gettime(CLOCK_THREAD_CPUTIME)
litl_time_t(* litl_timing_method_t)()
A callback function that returns the current time in ns. It can be either a pointer to one of the tim...
litl_time_t litl_get_time_monotonic_raw()
Uses clock_gettime(CLOCK_MONOTONIC_RAW)
litl_timing_method_t litl_get_time
Calls the selected timing method and get the current time in ns.
litl_time_t litl_get_time_ticks()
Uses CPU-specific register (for instance, rdtsc for X86* processors)
litl_time_t litl_get_time_monotonic()
Uses clock_gettime(CLOCK_MONOTONIC)
litl_types Provides a set of data structures for recording and reading events as well as merging and ...
void litl_time_initialize()
Initializes the timing mechanism.
int litl_set_timing_method(litl_timing_method_t callback)
Selects the timing function to use.
uint64_t litl_time_t
A data type for storing time stamps.