wavelength 1.0.0
Loading...
Searching...
No Matches
cycles.h
Go to the documentation of this file.
1#pragma once
2
4constexpr unsigned kCyclesPerMillisecond = 294912;
5
7constexpr int kMillisecondsPerSecond = 1000;
8
19unsigned ReadCycleCount();
20
27extern float gSystemCycles2Ms;
28
int GetMillisecondsPerSecond()
Report how many milliseconds one second has.
Definition cycles.h:42
unsigned ReadCycleCount()
Read the free-running cycle counter.
constexpr unsigned kCyclesPerMillisecond
EE clock in cycles per millisecond, which is the divisor the elapsed time is computed with.
Definition cycles.h:4
float gSystemCycles2Ms
Milliseconds per EE cycle.
constexpr int kMillisecondsPerSecond
Milliseconds in one second, the rate GetMillisecondsPerSecond() reports.
Definition cycles.h:7