mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
fix: Potential fix for weird profiling offset
This commit is contained in:
@@ -308,11 +308,13 @@ namespace ICD.Common.Utils.Timers
|
|||||||
if (elapsed >= RED_MILLISECONDS)
|
if (elapsed >= RED_MILLISECONDS)
|
||||||
color = eConsoleColor.Red;
|
color = eConsoleColor.Red;
|
||||||
|
|
||||||
if (s_ProfileIndentCount > 0)
|
string padding = null;
|
||||||
IcdConsole.Print(StringUtils.Repeat(" ", s_ProfileIndentCount - 1));
|
|
||||||
|
|
||||||
IcdConsole.Print(color, "{0:n}ms", elapsed);
|
if (s_ProfileIndentCount > 0)
|
||||||
IcdConsole.PrintLine(" to execute {0}", name);
|
padding = StringUtils.Repeat(" ", s_ProfileIndentCount - 1);
|
||||||
|
|
||||||
|
IcdConsole.Print(color, "{0}{1:n}ms ", padding, elapsed);
|
||||||
|
IcdConsole.PrintLine("to execute {0}", name);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Reference in New Issue
Block a user