16 using namespace std::chrono;
19 using time_point = time_point<high_resolution_clock>;
27 time_point StartTime {};
28 time_point OldTime {};
29 time_point LastFpsCalcutionTime {};
30 u32 LastFpsCalcutionFramesCount {};
38 static bool GetIsPause() {
return GlobalTimerInstance->IsPause; }
40 static float GetTime() {
return GlobalTimerInstance->Time; }
42 static float GetDeltaTime() {
return GlobalTimerInstance->DeltaTime; }
44 static float GetFps() {
return GlobalTimerInstance->Fps; }
47 static void SetIsPause(
bool IsPause) { GlobalTimerInstance->IsPause = IsPause; }
49 static void SwitchIsPause() { GlobalTimerInstance->IsPause = !GlobalTimerInstance->IsPause; }
Topology object basis class for mesh creating implementation module.
static shared< timer > & Get()
static void SetIsPause(bool IsPause)
static const float UpdateDelay
static void SwitchIsPause()
static float GetDeltaTime()
std::shared_ptr< T > shared