Console time formatting

This commit is contained in:
glax 2023-04-01 18:08:31 +02:00
parent 349ed9da94
commit 03322ea143

View File

@ -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}");