Multi-ApplicationOnlineProfiling  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Timer

This is a set of functions used to measure time precisely. This timer is process wide. More...

Functions

void Timer_set_origin ()
 Initializes the timer (save current processor timer counter) More...
 
void Timer_set_offset (long long int offset)
 Sets the offset to apply to timer. More...
 
void Timer_Init_scale (unsigned int(*real_sleep)(unsigned int))
 Timer_Init_scale. More...
 
static double Timer_second ()
 Getter on the current timer scale second. More...
 

Variables

long long int Process_Sync_Offset
 The offset of the timer. More...
 
uint64_t Process_time_origin
 The origin of the timer. More...
 
double Process_timer_second
 A second in the timer scale. More...
 

Detailed Description

This is a set of functions used to measure time precisely. This timer is process wide.

Function Documentation

void Timer_Init_scale ( unsigned int(*)(unsigned int)  real_sleep)

Timer_Init_scale.

Definition at line 37 of file Timer.c.

Here is the caller graph for this function:

static double Timer_second ( )
inlinestatic

Getter on the current timer scale second.

Returns
the current timer scale second

Definition at line 74 of file Timer.h.

Here is the caller graph for this function:

void Timer_set_offset ( long long int  offset)

Sets the offset to apply to timer.

Parameters
offsetthe new offset

Definition at line 31 of file Timer.c.

void Timer_set_origin ( )

Initializes the timer (save current processor timer counter)

Definition at line 26 of file Timer.c.

Here is the caller graph for this function:

Variable Documentation

long long int Process_Sync_Offset

The offset of the timer.

Definition at line 22 of file Timer.c.

uint64_t Process_time_origin

The origin of the timer.

Definition at line 23 of file Timer.c.

double Process_timer_second

A second in the timer scale.

Definition at line 24 of file Timer.c.