summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Utilities/IPerformanceCounterEvent.cs
diff options
context:
space:
mode:
authorDrachenkaetzchen <felicia@drachenkatze.org>2020-01-10 01:27:56 +0100
committerDrachenkaetzchen <felicia@drachenkatze.org>2020-01-10 01:27:56 +0100
commita751252c4ee3b48977d5d24c36a4e4e5466f93db (patch)
tree6de90dd8c6a5199fa49c84a9a089dda29a1758d6 /src/SMAPI/Framework/Utilities/IPerformanceCounterEvent.cs
parentceff27c9a82bb16358aa0f390ce3f346c06c47bc (diff)
downloadSMAPI-a751252c4ee3b48977d5d24c36a4e4e5466f93db.tar.gz
SMAPI-a751252c4ee3b48977d5d24c36a4e4e5466f93db.tar.bz2
SMAPI-a751252c4ee3b48977d5d24c36a4e4e5466f93db.zip
Initial commit of the performance counters
Diffstat (limited to 'src/SMAPI/Framework/Utilities/IPerformanceCounterEvent.cs')
-rw-r--r--src/SMAPI/Framework/Utilities/IPerformanceCounterEvent.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/Utilities/IPerformanceCounterEvent.cs b/src/SMAPI/Framework/Utilities/IPerformanceCounterEvent.cs
new file mode 100644
index 00000000..55302f90
--- /dev/null
+++ b/src/SMAPI/Framework/Utilities/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> PerformanceCounters { get; }
+
+ double GetGameAverageExecutionTime();
+ double GetModsAverageExecutionTime();
+ double GetAverageExecutionTime();
+ }
+}