Files
david 13691e3da3 Added: mesh transformation
Added: input
Added: texture shader
2026-10-13 18:30:21 +02:00

28 lines
502 B
C++

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