the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3class Timer
4{
5private:
6 static const int MAX_TICKS_PER_UPDATE = 10;
7
8public:
9 float ticksPerSecond;
10
11private:
12 double lastTime;
13public:
14 int ticks;
15 float a;
16 float timeScale;
17 float passedTime;
18
19private:
20 __int64 lastMs;
21 __int64 lastMsSysTime;
22 __int64 accumMs;
23
24 double adjustTime;
25
26public:
27 Timer(float ticksPerSecond);
28 void advanceTime();
29 void advanceTimeQuickly();
30 void skipTime();
31};