"u"nits displayed instead of microsecs

This commit is contained in:
VladMordock
2021-02-27 14:29:31 +01:00
parent 10afe7bf96
commit b1cd95649a
2 changed files with 4 additions and 4 deletions

View File

@@ -100,13 +100,13 @@ internal class PerunHelper
}
// Add new entry
arrLogHistory[arrLogHistory.Length - 1] = $"{DateTime.Now.ToString("HH:mm:ss")} {LogType} {Globals.LastFrameDelay.ToString("0.00")}µs {strEntryToAdd}"; // Add entry at the last position
arrLogHistory[arrLogHistory.Length - 1] = $"{DateTime.Now.ToString("HH:mm:ss")} {LogType} {Globals.LastFrameDelay.ToString("0.")}u {strEntryToAdd}"; // Add entry at the last position
// Update control at my window
Globals.AppUpdateGUI = true;
}
// Add the entry to log file
LogController.instance.WriteLog(logLevel, $"{DateTime.Now.ToString("yyyy-MM-dd ")} {DateTime.Now.ToString("HH:mm:ss.fff")} | {Globals.HardwareMonitor.LastCurrentCpuUsage} | {Globals.HardwareMonitor.LastCurrentRamUsage} | {Globals.LastFrameTime.ToString("0.00")} | {Globals.LastFrameDelay.ToString("0.00")} | {Globals.AppInstanceID} | {LogMarker} | {LogDirection} | {strType} | {strEntryToAdd}");
LogController.instance.WriteLog(logLevel, $"{DateTime.Now.ToString("yyyy-MM-dd ")} {DateTime.Now.ToString("HH:mm:ss.fff")} | {Globals.HardwareMonitor.LastCurrentCpuUsage} | {Globals.HardwareMonitor.LastCurrentRamUsage} | {Globals.LastFrameTime.ToString("000000.")} | {Globals.LastFrameDelay.ToString("000000.")} | {Globals.AppInstanceID} | {LogMarker} | {LogDirection} | {strType} | {strEntryToAdd}");
}
// Gets build version

View File

@@ -582,8 +582,8 @@ namespace Perun_v1
}
// Frame times
label31.Text = $"{Globals.LastFrameTime.ToString("0.00")}µs";
label33.Text = $"{Globals.LastFrameDelay.ToString("0.00")}µs";
label31.Text = $"{Globals.LastFrameTime.ToString("0.")}u";
label33.Text = $"{Globals.LastFrameDelay.ToString("0.")}u";
// Check if we shall rate logs
Globals.RotateLogs = con_check_minimize_to_tray.Checked;