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

This commit is contained in:
micialware committed 2025-03-13 15:55:20 +03:00
1 parent 41cea56995
commit 7e040892cc
7 files changed
+35 -6

No files matched your search

+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
}
}
}