Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Svisstack authored Mar 25, 2024
1 parent 203bfcf commit 464784c
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ void ProcessMsg(DateTime? time_exchange, DateTime? time_coinapi)
{
latencyList.Add((time_exchange.Value, time_coinapi.Value));
}
//Thread.Sleep(100);
}

switch (subscribe_data_type)
Expand Down Expand Up @@ -209,7 +208,6 @@ void ProcessMsg(DateTime? time_exchange, DateTime? time_coinapi)
= (wsClient.TotalWaitTime, wsClient.TotalParseTime, wsClient.TotalHandleTime);
//TimeSpan totalCpuTime = process.TotalProcessorTime;
var deltaCpuWaiting = cpuUsage.cpuWaiting - cpuUsagePrev.cpuWaiting;
var deltaCpuParsing = cpuUsage.cpuParsing - cpuUsagePrev.cpuParsing;
var deltaCpuHandling = cpuUsage.cpuHandling - cpuUsagePrev.cpuHandling;
Expand All @@ -236,12 +234,9 @@ void ProcessMsg(DateTime? time_exchange, DateTime? time_coinapi)
{
strbld.AppendFormat($" | Latency min: {latencies.Min().TotalMilliseconds,-8}ms");
strbld.AppendFormat($" | max: {latencies.Max().TotalMilliseconds,-8}ms");
}
Serilog.Log.Information(strbld.ToString());
}
}
);
Expand All @@ -250,4 +245,4 @@ void ProcessMsg(DateTime? time_exchange, DateTime? time_coinapi)
}
}

}
}

0 comments on commit 464784c

Please sign in to comment.