Более точное измерение времени обработки
This commit is contained in:
@@ -11,10 +11,10 @@ namespace mROA.Implementation.Frontend
|
||||
{
|
||||
public class RequestExtractor : IRequestExtractor
|
||||
{
|
||||
private IContextRepository? _realContextRepository;
|
||||
private IContextRepository? _remoteContextRepository;
|
||||
private IExecuteModule? _executeModule;
|
||||
private IMethodRepository? _methodRepository;
|
||||
private IContextRepository? _realContextRepository;
|
||||
private IContextRepository? _remoteContextRepository;
|
||||
private IRepresentationModule? _representationModule;
|
||||
private ISerializationToolkit? _serializationToolkit;
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace mROA.Implementation.Frontend
|
||||
if (sw.IsRunning)
|
||||
{
|
||||
sw.Stop();
|
||||
Console.WriteLine($"Request handling took {sw.ElapsedMilliseconds} milliseconds.");
|
||||
Console.WriteLine($"Request handling took {Math.Round(sw.Elapsed.TotalMilliseconds * 1000.0)} microseconds.");
|
||||
}
|
||||
#endif
|
||||
var tokenSource = new CancellationTokenSource();
|
||||
|
||||
Reference in New Issue
Block a user