Start converting D3D9 to D3D11

This commit is contained in:
2026-11-23 09:58:03 +01:00
parent 7aad3c6292
commit abb8da9cff
24 changed files with 1795 additions and 1 deletions
+28
View File
@@ -0,0 +1,28 @@
#include "Time.h"
#include <string>
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()
{
}