Дополнительные логи для проявления задержки

This commit is contained in:
2025-03-13 15:55:20 +03:00
parent 41cea56995
commit 7e040892cc
7 changed files with 35 additions and 6 deletions
+10 -2
View File
@@ -1,4 +1,5 @@
using System.Net;
using System.Diagnostics;
using System.Net;
using Example.Events.Shared;
using mROA.Cbor;
using mROA.Codegen;
@@ -56,9 +57,16 @@ class Program
}
else
symb = input.KeyChar.ToString();
#if TRACE
Console.Write(symb);
var sw = Stopwatch.StartNew();
chat.PostSymbol(symb);
sw.Stop();
Console.WriteLine($"{sw.ElapsedMilliseconds}ms");
#else
Console.Write(symb);
chat.PostSymbol(symb);
#endif
}
}
}