add D3D11 project

This commit is contained in:
2025-11-19 09:43:09 +01:00
parent 9134d2dc40
commit bff01f5adb
36 changed files with 2779 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
#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;
#ifdef _DEBUG
#ifdef UNICODE
wstring output = L"fps: " + to_wstring(1 / _deltaTime) + L"\n";
OutputDebugString(output.c_str());
#else // !UNICODE
string output = "fps: " + to_string(1 / _deltaTime) + "\n";
OutputDebugString(output.c_str());
#endif // UNICODE
#endif // DEBUG
}
void Time::deInit()
{
}