refactor: Replace HighPerformanceTimer w/ Stopwatch

This is needed to build DataStreamSuite on Linux.

'Stopwatch' is a platform independent timer class included with the
System.Runtime library in modern dotnet. 'HighPerformanceTimer' is a BTS
class that predates Stopwatch, and is NOT platform independent as it
relies on Windows kernel32.dll QueryPerformanceCounter/Frequency fns.
This commit is contained in:
John Colvin committed 2024-06-03 13:46:51 +00:00
1 parent 7ee6933789
commit 9050318ceb
18 files changed
+110 -184

No files matched your search

@@ -1,17 +1,5 @@
using System;
//using System.Messaging;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Text.RegularExpressions;
using BCG;
using BCG.Utilities;
using BCG.Utilities.General;
using mbts;
using mbts.spark;
//using BCG.Utilities.BlueConfiguration;
namespace BCG {
@@ -27,7 +15,6 @@ namespace BCG {
public class SubscriberCore : ISubscriberCore {
private Dictionary<string, ISingleServerSubscriberCore> _server_url_to_subcore_map = new Dictionary<string, ISingleServerSubscriberCore>();
private IPubSubRouter _tag_router;
private HighPerformanceTimer myTimer = new HighPerformanceTimer();
private PubSubServerConnectionFactory _connection_factory = new PubSubServerConnectionFactory(true);
public event PubSubConnectionChange onPubSubConnectionChange;