MySQL 8.0.40
Source Code Documentation
|
Multi-platform timer code. More...
Go to the source code of this file.
Classes | |
struct | my_timer_unit_info |
Characteristics of a timer. More... | |
struct | my_timer_info |
Characteristics of all the supported timers. More... | |
Macros | |
#define | MY_TIMER_ROUTINE_ASM_X86 1 |
#define | MY_TIMER_ROUTINE_ASM_X86_64 2 |
#define | MY_TIMER_ROUTINE_RDTSC 5 |
#define | MY_TIMER_ROUTINE_ASM_IA64 6 |
#define | MY_TIMER_ROUTINE_ASM_PPC 7 |
#define | MY_TIMER_ROUTINE_GETHRTIME 9 |
#define | MY_TIMER_ROUTINE_CLOCK_GETTIME 11 |
#define | MY_TIMER_ROUTINE_NXGETTIME 12 |
#define | MY_TIMER_ROUTINE_GETTIMEOFDAY 13 |
#define | MY_TIMER_ROUTINE_QUERYPERFORMANCECOUNTER 14 |
#define | MY_TIMER_ROUTINE_GETTICKCOUNT 15 |
#define | MY_TIMER_ROUTINE_TIMES 17 |
#define | MY_TIMER_ROUTINE_ASM_PPC64 19 |
#define | MY_TIMER_ROUTINE_ASM_GCC_SPARC64 23 |
#define | MY_TIMER_ROUTINE_MACH_ABSOLUTE_TIME 25 |
#define | MY_TIMER_ROUTINE_GETSYSTEMTIMEASFILETIME 26 |
#define | MY_TIMER_ROUTINE_ASM_AARCH64 28 |
#define | MY_TIMER_ROUTINE_GET_THREAD_TIMES 29 |
#define | MY_TIMER_ROUTINE_ASM_S390X 30 |
Typedefs | |
typedef struct my_timer_info | MY_TIMER_INFO |
Functions | |
ulonglong | my_timer_cycles (void) |
A cycle timer. More... | |
ulonglong | my_timer_nanoseconds (void) |
A namoseconds timer. More... | |
ulonglong | my_timer_microseconds (void) |
A microseconds timer. More... | |
ulonglong | my_timer_milliseconds (void) |
A millisecond timer. More... | |
ulonglong | my_timer_ticks (void) |
A ticks timer. More... | |
ulonglong | my_timer_thread_cpu (void) |
A THREAD CPU timer. More... | |
void | my_timer_init (MY_TIMER_INFO *mti) |
Timer initialization function. More... | |
Multi-platform timer code.
#define MY_TIMER_ROUTINE_ASM_AARCH64 28 |
#define MY_TIMER_ROUTINE_ASM_GCC_SPARC64 23 |
#define MY_TIMER_ROUTINE_ASM_IA64 6 |
#define MY_TIMER_ROUTINE_ASM_PPC 7 |
#define MY_TIMER_ROUTINE_ASM_PPC64 19 |
#define MY_TIMER_ROUTINE_ASM_S390X 30 |
#define MY_TIMER_ROUTINE_ASM_X86 1 |
#define MY_TIMER_ROUTINE_ASM_X86_64 2 |
#define MY_TIMER_ROUTINE_CLOCK_GETTIME 11 |
#define MY_TIMER_ROUTINE_GET_THREAD_TIMES 29 |
#define MY_TIMER_ROUTINE_GETHRTIME 9 |
#define MY_TIMER_ROUTINE_GETSYSTEMTIMEASFILETIME 26 |
#define MY_TIMER_ROUTINE_GETTICKCOUNT 15 |
#define MY_TIMER_ROUTINE_GETTIMEOFDAY 13 |
#define MY_TIMER_ROUTINE_MACH_ABSOLUTE_TIME 25 |
#define MY_TIMER_ROUTINE_NXGETTIME 12 |
#define MY_TIMER_ROUTINE_QUERYPERFORMANCECOUNTER 14 |
#define MY_TIMER_ROUTINE_RDTSC 5 |
#define MY_TIMER_ROUTINE_TIMES 17 |
typedef struct my_timer_info MY_TIMER_INFO |
ulonglong my_timer_cycles | ( | void | ) |
A cycle timer.
void my_timer_init | ( | MY_TIMER_INFO * | mti | ) |
Timer initialization function.
[out] | mti | the timer characteristics. |
ulonglong my_timer_microseconds | ( | void | ) |
A microseconds timer.
ulonglong my_timer_milliseconds | ( | void | ) |
A millisecond timer.
ulonglong my_timer_nanoseconds | ( | void | ) |
A namoseconds timer.
ulonglong my_timer_thread_cpu | ( | void | ) |
A THREAD CPU timer.
A THREAD CPU timer.
Expressed in nanoseconds.
ulonglong my_timer_ticks | ( | void | ) |
A ticks timer.