public void RecordMeasurement()
        {
            History.AddMeasurement(stopwatch.Elapsed.TotalMilliseconds, BytesUsed, HitCounter);
            if (stopwatch.IsRunning)
            {
                Log.Error($"{key} was still running when recorded");
            }

            stopwatch.Stop();
            stopwatch.Reset();
            HitCounter = 0;
            lastTime   = 0;
        }
        public void RecordMeasurement()
        {
            double timeElapsed = stopwatch.Elapsed.TotalMilliseconds;

            History.AddMeasurement(timeElapsed, HitCounter);

            if (stopwatch.IsRunning)
            {
                Log.Error($"Analyzer: {key} was still running when recorded");
            }

            stopwatch.Stop();
            stopwatch.Reset();
            HitCounter = 0;
            lastTime   = timeElapsed;
        }