summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/PerformanceCounter/IPerformanceCounterEvent.cs
diff options
context:
space:
mode:
authorDrachenkaetzchen <felicia@drachenkatze.org>2020-01-10 14:08:25 +0100
committerDrachenkaetzchen <felicia@drachenkatze.org>2020-01-10 14:08:25 +0100
commit47f626cc99c93a28b2d6867ed6cc717b39ec062c (patch)
tree475d30d1d7a269c3f27a5c7d2bdca29dbc7e0bde /src/SMAPI/Framework/PerformanceCounter/IPerformanceCounterEvent.cs
parenta751252c4ee3b48977d5d24c36a4e4e5466f93db (diff)
downloadSMAPI-47f626cc99c93a28b2d6867ed6cc717b39ec062c.tar.gz
SMAPI-47f626cc99c93a28b2d6867ed6cc717b39ec062c.tar.bz2
SMAPI-47f626cc99c93a28b2d6867ed6cc717b39ec062c.zip
Moved most PerformanceCounter logic out of SCore into the new PerformanceCounterManager, some namespace refactoring
Diffstat (limited to 'src/SMAPI/Framework/PerformanceCounter/IPerformanceCounterEvent.cs')
-rw-r--r--src/SMAPI/Framework/PerformanceCounter/IPerformanceCounterEvent.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/PerformanceCounter/IPerformanceCounterEvent.cs b/src/SMAPI/Framework/PerformanceCounter/IPerformanceCounterEvent.cs
new file mode 100644
index 00000000..6b83586d
--- /dev/null
+++ b/src/SMAPI/Framework/PerformanceCounter/IPerformanceCounterEvent.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+
+namespace StardewModdingAPI.Framework.Utilities
+{
+ public interface IPerformanceCounterEvent
+ {
+ string GetEventName();
+ long GetAverageCallsPerSecond();
+ IDictionary<string, PerformanceCounter.PerformanceCounter> PerformanceCounters { get; }
+
+ double GetGameAverageExecutionTime();
+ double GetModsAverageExecutionTime();
+ double GetAverageExecutionTime();
+ }
+}