Skip to content

File tsc_timer.h

FileList > base > tsc_timer.h

Go to the source code of this file

  • #include "porting.h"
  • #include "cycle.h"

Public Types

Type Name
typedef struct timeval TSCTIMEVAL
typedef union tsc_ticks TSC_TICKS
typedef UINT64 TSC_UINT64
union tsc_ticks

Public Functions

Type Name
TSC_UINT64 get_clock_freq (void)
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_end_time_usec (TSCTIMEVAL * tv, TSC_TICKS start_tick)
void tsc_getticks (TSC_TICKS * tck)
void tsc_init (void)
void tsc_start_time_usec (TSC_TICKS * tck)

Macros

Type Name
define TSC_ADD_TIMEVAL (total, diff) /* multi line expression */

Public Types Documentation

typedef TSCTIMEVAL

typedef struct timeval TSCTIMEVAL;

typedef TSC_TICKS

typedef union tsc_ticks TSC_TICKS;

typedef TSC_UINT64

typedef UINT64 TSC_UINT64;

union tsc_ticks



Public Functions Documentation

function get_clock_freq

TSC_UINT64 get_clock_freq (
    void
) 

function tsc_elapsed_time_usec

void tsc_elapsed_time_usec (
    TSCTIMEVAL * tv,
    TSC_TICKS end_tick,
    TSC_TICKS start_tick
) 

function tsc_elapsed_utime

UINT64 tsc_elapsed_utime (
    TSC_TICKS end_tick,
    TSC_TICKS start_tick
) 

function tsc_end_time_usec

void tsc_end_time_usec (
    TSCTIMEVAL * tv,
    TSC_TICKS start_tick
) 

function tsc_getticks

void tsc_getticks (
    TSC_TICKS * tck
) 

function tsc_init

void tsc_init (
    void
) 

function tsc_start_time_usec

void tsc_start_time_usec (
    TSC_TICKS * tck
) 

Macro Definition Documentation

define TSC_ADD_TIMEVAL

#define TSC_ADD_TIMEVAL (
    total,
    diff
) `/* multi line expression */`


The documentation for this class was generated from the following file cubrid/src/base/tsc_timer.h