wavelength 1.0.0
Loading...
Searching...
No Matches
Timer.h File Reference

Go to the source code of this file.

Classes

class  Timer
 Stopwatch on the EE cycle counter. More...

Functions

unsigned int ReadTimeStampCounter ()
float TimerUpdateMs ()
 Add the cycles since the last reading to the total.

Variables

unsigned int gLastCycleCount
 The time-stamp counter at the last reading.
unsigned int gDeltaCycles
 The cycles between the last two readings.
int gCalibrateCount
 1 once the counter is calibrated and read at every update.
float gMsPerCycle
 The milliseconds of one cycle of the time-stamp counter.
unsigned __int64 gTotalCycles
 The cycles counted since the timer started.

Function Documentation

◆ ReadTimeStampCounter()

unsigned int ReadTimeStampCounter ( )
inline
Returns
The low word of the processor's time-stamp counter.

◆ TimerUpdateMs()

float TimerUpdateMs ( )
inline

Add the cycles since the last reading to the total.

Returns
The time since the timer started, in milliseconds.

Variable Documentation

◆ gLastCycleCount

unsigned int gLastCycleCount
extern

The time-stamp counter at the last reading.

Ghidra address:
0x10040c98

◆ gDeltaCycles

unsigned int gDeltaCycles
extern

The cycles between the last two readings.

Ghidra address:
0x10040c9c

◆ gCalibrateCount

int gCalibrateCount
extern

1 once the counter is calibrated and read at every update.

Ghidra address:
0x10040ca8

◆ gMsPerCycle

float gMsPerCycle
extern

The milliseconds of one cycle of the time-stamp counter.

Ghidra address:
0x10040cb0

◆ gTotalCycles

unsigned __int64 gTotalCycles
extern

The cycles counted since the timer started.

Ghidra address:
0x10040cb8