7 #ifndef _HIGHRES_TIMER_CLASS_HEADER_
8 #define _HIGHRES_TIMER_CLASS_HEADER_
100 static void __stdcall TimerProc(
unsigned int uiID,
unsigned int uiMsg, __int64 dwUser, __int64 dw1, __int64 dw2);
102 static void __stdcall TimerProc(
unsigned int uiID,
unsigned int uiMsg,
unsigned long dwUser,
unsigned long dw1,
unsigned long dw2);
tInt64 tTimeStamp
type definition for a time value.
unsigned int tUInt
type definition for unsigned integer value (platform and compiler dependent type).
void tVoid
The tVoid is always the definition for the void (non-type).
uint32_t tUInt32
type definition for unsigned integer values (32bit) (platform and compiler independent type).
uint64_t tUInt64
type definition for unsigned integer values (64bit) (platform and compiler independent type).
Class that measures timespans.
tTimeStamp GetElapsed()
Returns the timespan since the last call of GetElapsed or Reset.
cHighResTimeSpan()
Default constructor.
~cHighResTimeSpan()
Destructor.
tVoid Reset()
Resets the start timestamp.
static tTimeStamp GetTime()
Returns the current time in microseconds.
tVoid Sleep(tUInt uiTimeout)
Pauses the calling thread for a specified time.
tResult Release()
Releases all allocated resources.
virtual ~cHighResTimer()
Destructor.
cHighResTimer()
Default constructor.
tVoid SleepMicroSeconds(tTimeStamp tmTimeout)
Pauses the calling thread for a specified time.
static tUInt GetMaximumResolution()
returns the maximum resolution
tResult Create(tUInt uiDelay)
Allocates all resources, registers timer with OS.
static tUInt GetMinimumResolution()
returns the minimum resolution
A common result class usable as return value throughout.
CPU Tick Counter class This class may be used for testing purposes.
cTickCounter()
Default constructor.
tUInt64 GetElapsed()
Returns the ticks since the last call of GetElapsed or Reset.
static tUInt64 GetCurrentTicks()
Returns the current tick count in the cpu register.
tVoid Reset()
Resets start tick count of the counter.
#define A_UTILS_D(__pclassname_)
Helper macro for d-pattern definitions.
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.