ADTF  v2.14.3
cTickCounter Class Reference

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 157 of file highrestimer.h.

Member Function Documentation

static tUInt64 GetCurrentTicks ( )
static

Returns the current tick count in the cpu register.

Returns
The tick count.
This method is real-time safe.
See The ADTF Real-Time Extension.
tUInt64 GetElapsed ( )

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

This method is real-time safe.
See The ADTF Real-Time Extension.
Returns
tVoid Reset ( )

Resets start tick count of the counter.

Returns
void
This method is real-time safe.
See The ADTF Real-Time Extension.

Copyright © Audi Electronics Venture GmbH. All rights reserved. (Generated on Fri Mar 22 2019 by doxygen 1.8.10)