summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounter.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-05-05 20:49:05 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-05-05 20:49:05 -0400
commite08979acd301792435661d2c0008469a800f8dbb (patch)
tree2c3d1b04f932e0cdb2e51a1acea179d441ce1c1b /src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounter.cs
parent9728fe3f347328323ff79c6c93df2ab390f6070e (diff)
downloadSMAPI-e08979acd301792435661d2c0008469a800f8dbb.tar.gz
SMAPI-e08979acd301792435661d2c0008469a800f8dbb.tar.bz2
SMAPI-e08979acd301792435661d2c0008469a800f8dbb.zip
migrate to Harmony 2.0 (#711)
Diffstat (limited to 'src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounter.cs')
-rw-r--r--src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounter.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounter.cs b/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounter.cs
index 3cf668ee..42825999 100644
--- a/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounter.cs
+++ b/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounter.cs
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using Harmony;
namespace StardewModdingAPI.Framework.PerformanceMonitoring
{
@@ -57,7 +56,7 @@ namespace StardewModdingAPI.Framework.PerformanceMonitoring
// add entry
if (this.Entries.Count > this.MaxEntries)
this.Entries.Pop();
- this.Entries.Add(entry);
+ this.Entries.Push(entry);
// update metrics
if (this.PeakPerformanceCounterEntry == null || entry.ElapsedMilliseconds > this.PeakPerformanceCounterEntry.Value.ElapsedMilliseconds)