mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
fix: Potential fix for weird profiling offset
This commit is contained in:
parent
015ffb2c35
commit
566884167f
1 changed files with 6 additions and 4 deletions
|
|
@ -308,10 +308,12 @@ namespace ICD.Common.Utils.Timers
|
|||
if (elapsed >= RED_MILLISECONDS)
|
||||
color = eConsoleColor.Red;
|
||||
|
||||
if (s_ProfileIndentCount > 0)
|
||||
IcdConsole.Print(StringUtils.Repeat(" ", s_ProfileIndentCount - 1));
|
||||
string padding = null;
|
||||
|
||||
IcdConsole.Print(color, "{0:n}ms", elapsed);
|
||||
if (s_ProfileIndentCount > 0)
|
||||
padding = StringUtils.Repeat(" ", s_ProfileIndentCount - 1);
|
||||
|
||||
IcdConsole.Print(color, "{0}{1:n}ms ", padding, elapsed);
|
||||
IcdConsole.PrintLine("to execute {0}", name);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue