Files
hwr2024_b/GDP/D3D9/Time.h
T
david 439871d63f Add transformations
Add input
Add time
Add vertex colors
2026-11-16 15:56:44 +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 = {};
};