Backport fast frame counting and other stuff from Nmkoder

This commit is contained in:
n00mkrad
2021-12-06 22:46:39 +01:00
parent 659332dd0f
commit 7a3c95f6fb
16 changed files with 255 additions and 155 deletions

View File

@@ -39,7 +39,7 @@ namespace Flowframes.MiscUtils
{
if(task.timer.sw.ElapsedMilliseconds > task.timeoutSeconds * 1000)
{
Logger.Log($"[BgTaskMgr] Task with ID {task.id} timed out, has been running for {task.timer.GetElapsedStr()}!", true);
Logger.Log($"[BgTaskMgr] Task with ID {task.id} timed out, has been running for {task.timer}!", true);
runningTasks.Remove(task);
}
}
@@ -59,7 +59,7 @@ namespace Flowframes.MiscUtils
{
if(task.id == id)
{
Logger.Log($"[BgTaskMgr] Task '{task.name}' has finished after {task.timer.GetElapsedStr()} (Timeout {task.timeoutSeconds}s)", true);
Logger.Log($"[BgTaskMgr] Task '{task.name}' has finished after {task.timer} (Timeout {task.timeoutSeconds}s)", true);
runningTasks.Remove(task);
}
}