osu-ds/source/System/GameClock.h
KonPet 183228e28e Change stuff to make it build
Removed the arm7 section
Changed the makefile to only use the arm9 stuff
Epicpkmn: Fix source/Graphics/GraphicsManager.cpp

Co-Authored-By: Pk11 <epicpkmn11@outlook.com>
Co-Authored-By: Kaisaan <34224128+Kaisaan@users.noreply.github.com>
2021-10-21 00:03:39 +02:00

33 lines
479 B
C++

#include <nds.h>
#ifndef __GAMECLOCK_H__
#define __GAMECLOCK_H__
class GameClock
{
public:
s32 Time();
void Update(); //calls should be synced with vblank
void SkipTo(s32 time);
void Reset();
static GameClock& Clock() { return sClock; }
protected:
s32 mTime;
s32 mFraction;
static const s32 kTimeInterval = 16;
static const s32 kFractionInterval = 715112635;
static GameClock sClock;
private:
GameClock();
~GameClock() {}
};
#endif