#include "Time.h" #include UINT Time::init() { _lastFrame = CLOCK::now(); return 0; } void Time::update() { TIMEPOINT now = CLOCK::now(); SECONDS diff = now - _lastFrame; _deltaTime = diff.count(); _lastFrame = now; #if _DEBUG && UNICODE wstring output = L"fps: " + to_wstring(1.0f / _deltaTime) + L"\n"; OutputDebugString(output.c_str()); #endif // _DEBUG && UNICODE } void Time::deInit() { }