Files
2026-11-23 13:32:53 +01:00

25 lines
377 B
C++

#pragma once
#include <Windows.h>
#include <chrono>
using namespace std;
typedef chrono::steady_clock CLOCK;
typedef chrono::duration<FLOAT> SECONDS;
typedef CLOCK::time_point TIMEPOINT;
class Time
{
public:
UINT init();
void update();
void deInit();
FLOAT getDeltaTime() const { return _deltaTime; }
private:
FLOAT _deltaTime = 0.0f;
TIMEPOINT _lastFrame = {};
};