Дополнительные логи для проявления задержки
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||
<DefineConstants />
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Example.Events.Shared\Example.Events.Shared.csproj"/>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user