CUBRID Engine  latest
tsc_timer.h File Reference
#include "porting.h"
#include "cycle.h"
Include dependency graph for tsc_timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  tsc_ticks
 

Macros

#define TSC_ADD_TIMEVAL(total, diff)
 

Typedefs

typedef UINT64 TSC_UINT64
 
typedef struct timeval TSCTIMEVAL
 
typedef union tsc_ticks TSC_TICKS
 

Functions

void tsc_init (void)
 
void tsc_getticks (TSC_TICKS *tck)
 
void tsc_elapsed_time_usec (TSCTIMEVAL *tv, TSC_TICKS end_tick, TSC_TICKS start_tick)
 
UINT64 tsc_elapsed_utime (TSC_TICKS end_tick, TSC_TICKS start_tick)
 
void tsc_start_time_usec (TSC_TICKS *tck)
 
void tsc_end_time_usec (TSCTIMEVAL *tv, TSC_TICKS start_tick)
 
TSC_UINT64 get_clock_freq (void)
 

Macro Definition Documentation

#define TSC_ADD_TIMEVAL (   total,
  diff 
)

Typedef Documentation

typedef union tsc_ticks TSC_TICKS

Definition at line 42 of file tsc_timer.h.

typedef UINT64 TSC_UINT64

Definition at line 39 of file tsc_timer.h.

typedef struct timeval TSCTIMEVAL

Definition at line 40 of file tsc_timer.h.

Function Documentation

TSC_UINT64 get_clock_freq ( void  )

Definition at line 36 of file get_clock_freq.c.

References NULL.

Referenced by tsc_init().

Here is the caller graph for this function:

UINT64 tsc_elapsed_utime ( TSC_TICKS  end_tick,
TSC_TICKS  start_tick 
)
void tsc_end_time_usec ( TSCTIMEVAL tv,
TSC_TICKS  start_tick 
)
void tsc_init ( void  )

Definition at line 67 of file tsc_timer.c.

References check_power_savings(), cpu_Clock_rate, and get_clock_freq().

Referenced by boot_initialize_client(), boot_restart_client(), boot_restart_server(), patchdb(), xboot_emergency_patch(), and xboot_initialize_server().

Here is the caller graph for this function:

void tsc_start_time_usec ( TSC_TICKS tck)

Definition at line 150 of file tsc_timer.c.

References tsc_getticks().