ADTF  3.18.2
cTickCounter

CPU Tick Counter class This class may be used for testing purposes. More...

Public Member Functions

 cTickCounter ()
 Default constructor.
 
tVoid Reset ()
 Resets start tick count of the counter. More...
 
tUInt64 GetElapsed ()
 Returns the ticks since the last call of GetElapsed or Reset. More...
 

Static Public Member Functions

static tUInt64 GetCurrentTicks ()
 Returns the current tick count in the cpu register. More...
 

Detailed Description

CPU Tick Counter class This class may be used for testing purposes.

Unfortunatly cpu internal timer registers on current multicore cpus are not reliable in systems with poweremanagement cpu frequency adjustments.

Definition at line 149 of file highrestimer.h.

Member Function Documentation

◆ GetCurrentTicks()

static tUInt64 GetCurrentTicks ( )
static

Returns the current tick count in the cpu register.

Returns
The tick count.
This method is real-time safe.\nSee @ref page_real_time_safe.\n

◆ GetElapsed()

tUInt64 GetElapsed ( )

Returns the ticks since the last call of GetElapsed or Reset.

This method is real-time safe.\nSee @ref page_real_time_safe.\n
Returns

◆ Reset()

tVoid Reset ( )

Resets start tick count of the counter.

Returns
void
This method is real-time safe.\nSee @ref page_real_time_safe.\n