112#define MY_TIMER_ROUTINE_ASM_X86 1
113#define MY_TIMER_ROUTINE_ASM_X86_64 2
116#define MY_TIMER_ROUTINE_RDTSC 5
117#define MY_TIMER_ROUTINE_ASM_IA64 6
118#define MY_TIMER_ROUTINE_ASM_PPC 7
120#define MY_TIMER_ROUTINE_GETHRTIME 9
122#define MY_TIMER_ROUTINE_CLOCK_GETTIME 11
123#define MY_TIMER_ROUTINE_NXGETTIME 12
124#define MY_TIMER_ROUTINE_GETTIMEOFDAY 13
125#define MY_TIMER_ROUTINE_QUERYPERFORMANCECOUNTER 14
126#define MY_TIMER_ROUTINE_GETTICKCOUNT 15
128#define MY_TIMER_ROUTINE_TIMES 17
130#define MY_TIMER_ROUTINE_ASM_PPC64 19
134#define MY_TIMER_ROUTINE_ASM_GCC_SPARC64 23
136#define MY_TIMER_ROUTINE_MACH_ABSOLUTE_TIME 25
137#define MY_TIMER_ROUTINE_GETSYSTEMTIMEASFILETIME 26
139#define MY_TIMER_ROUTINE_ASM_AARCH64 28
140#define MY_TIMER_ROUTINE_GET_THREAD_TIMES 29
141#define MY_TIMER_ROUTINE_ASM_S390X 30
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
ulonglong my_timer_microseconds(void)
A microseconds timer.
Definition: my_rdtsc.cc:226
ulonglong my_timer_ticks(void)
A ticks timer.
Definition: my_rdtsc.cc:302
ulonglong my_timer_cycles(void)
A cycle timer.
Definition: my_rdtsc.cc:98
void my_timer_init(MY_TIMER_INFO *mti)
Timer initialization function.
Definition: my_rdtsc.cc:477
ulonglong my_timer_milliseconds(void)
A millisecond timer.
Definition: my_rdtsc.cc:265
ulonglong my_timer_thread_cpu(void)
A THREAD CPU timer.
Definition: my_rdtsc.cc:319
ulonglong my_timer_nanoseconds(void)
A namoseconds timer.
Definition: my_rdtsc.cc:194
Characteristics of all the supported timers.
Definition: my_rdtsc.h:53
struct my_timer_unit_info microseconds
Characteristics of the microsecond timer.
Definition: my_rdtsc.h:59
struct my_timer_unit_info cycles
Characteristics of the cycle timer.
Definition: my_rdtsc.h:55
struct my_timer_unit_info thread_cpu
Characteristics of the thread cpu timer.
Definition: my_rdtsc.h:65
struct my_timer_unit_info ticks
Characteristics of the tick timer.
Definition: my_rdtsc.h:63
struct my_timer_unit_info nanoseconds
Characteristics of the nanosecond timer.
Definition: my_rdtsc.h:57
struct my_timer_unit_info milliseconds
Characteristics of the millisecond timer.
Definition: my_rdtsc.h:61
Characteristics of a timer.
Definition: my_rdtsc.h:38
ulonglong resolution
Resolution of the timer.
Definition: my_rdtsc.h:46
ulonglong overhead
Overhead of the timer.
Definition: my_rdtsc.h:42
ulonglong frequency
Frequency of the timer.
Definition: my_rdtsc.h:44
ulonglong routine
Routine used for the timer.
Definition: my_rdtsc.h:40