mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 15:55:39 +02:00
"u"nits displayed instead of microsecs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user