Files
hwr2023_a/GDP/D3D9/Time.h
T
david 589d0933f4 add input
add time
2025-09-24 15:37:58 +02:00

25 lines
377 B
C++

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