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