resonance 1.0.1
Loading...
Searching...
No Matches
timer.h
Go to the documentation of this file.
1#pragma once
2
10class Timer {
11public:
23 static void Init();
24
33 static float sClock2Ms;
34
41 static int sElapsedMs;
42
52 static long long sElapsedCycles;
53
60 static unsigned sElapsedTimer;
61
71 static unsigned sLastCycleDelta;
72};
The EE cycle clock the engine times itself against.
Definition timer.h:10
static void Init()
Start the clock from the current counter reading.
static float sClock2Ms
Milliseconds per EE cycle, the reciprocal of kCyclesPerMillisecond.
Definition timer.h:33
static int sElapsedMs
Word Init() clears beside the cycle state.
Definition timer.h:41
static unsigned sLastCycleDelta
The difference the last call added to the total.
Definition timer.h:71
static unsigned sElapsedTimer
The counter reading the last call took.
Definition timer.h:60
static long long sElapsedCycles
Cycles accumulated across every read.
Definition timer.h:52