Console time formatting
This commit is contained in:
parent
349ed9da94
commit
03322ea143
@ -28,7 +28,7 @@ public class ConsoleWriter : TextWriter
|
||||
public override void WriteLine(string? text)
|
||||
{
|
||||
DateTime now = DateTime.Now;
|
||||
string dateTimeString = $"[{now.ToUniversalTime():u} ({Math.Floor((now - execStart).TotalMilliseconds):####00000})]";
|
||||
string dateTimeString = $"[{now.ToUniversalTime():u} ({Math.Floor((now - execStart).TotalMilliseconds):###,###,###})]";
|
||||
if(text is not null)
|
||||
OnWriteLine?.Invoke(this, new ConsoleWriterEventArgs($"{dateTimeString} {text}"));
|
||||
stdOut.WriteLine($"{dateTimeString} {text}");
|
||||
|
Loading…
Reference in New Issue
Block a user