111#define MY_TIMER_ROUTINE_ASM_X86 1
112#define MY_TIMER_ROUTINE_ASM_X86_64 2
115#define MY_TIMER_ROUTINE_RDTSC 5
116#define MY_TIMER_ROUTINE_ASM_IA64 6
117#define MY_TIMER_ROUTINE_ASM_PPC 7
119#define MY_TIMER_ROUTINE_GETHRTIME 9
121#define MY_TIMER_ROUTINE_CLOCK_GETTIME 11
122#define MY_TIMER_ROUTINE_NXGETTIME 12
123#define MY_TIMER_ROUTINE_GETTIMEOFDAY 13
124#define MY_TIMER_ROUTINE_QUERYPERFORMANCECOUNTER 14
125#define MY_TIMER_ROUTINE_GETTICKCOUNT 15
127#define MY_TIMER_ROUTINE_TIMES 17
129#define MY_TIMER_ROUTINE_ASM_PPC64 19
133#define MY_TIMER_ROUTINE_ASM_GCC_SPARC64 23
135#define MY_TIMER_ROUTINE_MACH_ABSOLUTE_TIME 25
136#define MY_TIMER_ROUTINE_GETSYSTEMTIMEASFILETIME 26
138#define MY_TIMER_ROUTINE_ASM_AARCH64 28
139#define MY_TIMER_ROUTINE_GET_THREAD_TIMES 29
140#define MY_TIMER_ROUTINE_ASM_S390X 30
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
ulonglong my_timer_microseconds(void)
A microseconds timer.
Definition: my_rdtsc.cc:225
ulonglong my_timer_ticks(void)
A ticks timer.
Definition: my_rdtsc.cc:301
ulonglong my_timer_cycles(void)
A cycle timer.
Definition: my_rdtsc.cc:97
void my_timer_init(MY_TIMER_INFO *mti)
Timer initialization function.
Definition: my_rdtsc.cc:476
ulonglong my_timer_milliseconds(void)
A millisecond timer.
Definition: my_rdtsc.cc:264
ulonglong my_timer_thread_cpu(void)
A THREAD CPU timer.
Definition: my_rdtsc.cc:318
ulonglong my_timer_nanoseconds(void)
A namoseconds timer.
Definition: my_rdtsc.cc:193
Characteristics of all the supported timers.
Definition: my_rdtsc.h:52
struct my_timer_unit_info microseconds
Characteristics of the microsecond timer.
Definition: my_rdtsc.h:58
struct my_timer_unit_info cycles
Characteristics of the cycle timer.
Definition: my_rdtsc.h:54
struct my_timer_unit_info thread_cpu
Characteristics of the thread cpu timer.
Definition: my_rdtsc.h:64
struct my_timer_unit_info ticks
Characteristics of the tick timer.
Definition: my_rdtsc.h:62
struct my_timer_unit_info nanoseconds
Characteristics of the nanosecond timer.
Definition: my_rdtsc.h:56
struct my_timer_unit_info milliseconds
Characteristics of the millisecond timer.
Definition: my_rdtsc.h:60
Characteristics of a timer.
Definition: my_rdtsc.h:37
ulonglong resolution
Resolution of the timer.
Definition: my_rdtsc.h:45
ulonglong overhead
Overhead of the timer.
Definition: my_rdtsc.h:41
ulonglong frequency
Frequency of the timer.
Definition: my_rdtsc.h:43
ulonglong routine
Routine used for the timer.
Definition: my_rdtsc.h:39