litl  0.1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Functions | Variables
Pre-Defined Timing Methods

Functions

litl_time_t litl_get_time_monotonic_raw ()
 Uses clock_gettime(CLOCK_MONOTONIC_RAW) More...
 
litl_time_t litl_get_time_monotonic ()
 Uses clock_gettime(CLOCK_MONOTONIC) More...
 
litl_time_t litl_get_time_realtime ()
 Uses clock_gettime(CLOCK_REALTIME) More...
 
litl_time_t litl_get_time_process_cputime ()
 Uses clock_gettime(CLOCK_PROCESS_CPUTIME) More...
 
litl_time_t litl_get_time_thread_cputime ()
 Uses clock_gettime(CLOCK_THREAD_CPUTIME) More...
 
litl_time_t litl_get_time_ticks ()
 Uses CPU-specific register (for instance, rdtsc for X86* processors) More...
 

Variables

litl_timing_method_t litl_get_time
 Calls the selected timing method and get the current time in ns. More...
 

Detailed Description

Function Documentation

litl_time_t litl_get_time_monotonic ( )

Uses clock_gettime(CLOCK_MONOTONIC)

Returns
Returns the monotonic time since some unspecified starting point

Definition at line 186 of file litl_timer.c.

litl_time_t litl_get_time_monotonic_raw ( )

Uses clock_gettime(CLOCK_MONOTONIC_RAW)

Returns
Returns time that is similar to CLOCK_MONOTONIC, but provides access to a raw hardware-based time

Definition at line 173 of file litl_timer.c.

litl_time_t litl_get_time_process_cputime ( )

Uses clock_gettime(CLOCK_PROCESS_CPUTIME)

Returns
Returns the high-resolution per-process time from the CPU

Definition at line 212 of file litl_timer.c.

litl_time_t litl_get_time_realtime ( )

Uses clock_gettime(CLOCK_REALTIME)

Returns
Returns the real (wall-clock) time

Definition at line 199 of file litl_timer.c.

litl_time_t litl_get_time_thread_cputime ( )

Uses clock_gettime(CLOCK_THREAD_CPUTIME)

Returns
Returns the thread-specific CPU-time

Definition at line 225 of file litl_timer.c.

litl_time_t litl_get_time_ticks ( )

Uses CPU-specific register (for instance, rdtsc for X86* processors)

Returns
Returns the measured time in clock cycles

Definition at line 238 of file litl_timer.c.

Variable Documentation

litl_timing_method_t litl_get_time

Calls the selected timing method and get the current time in ns.

Definition at line 33 of file litl_timer.c.