This commit is contained in:
MihailRis 2024-12-19 02:37:13 +03:00
parent 008e11b4b7
commit 3c6ca01df8

View File

@ -41,6 +41,7 @@ void ServerMainloop::run() {
double delta = targetDelta;
auto begin = system_clock::now();
auto startupTime = begin;
while (process->isActive()) {
if (engine.isQuitSignal()) {
process->terminate();
@ -65,7 +66,7 @@ void ServerMainloop::run() {
auto end = system_clock::now();
platform::sleep(targetDelta * 1000 -
duration_cast<microseconds>(end - begin).count() / 1000);
begin = end;
begin = system_clock::now();
}
}
logger.info() << "test finished";