summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/PerformanceMonitoring/AlertContext.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Framework/PerformanceMonitoring/AlertContext.cs')
-rw-r--r--src/SMAPI/Framework/PerformanceMonitoring/AlertContext.cs34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/SMAPI/Framework/PerformanceMonitoring/AlertContext.cs b/src/SMAPI/Framework/PerformanceMonitoring/AlertContext.cs
deleted file mode 100644
index af630055..00000000
--- a/src/SMAPI/Framework/PerformanceMonitoring/AlertContext.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-namespace StardewModdingAPI.Framework.PerformanceMonitoring
-{
- /// <summary>The context for an alert.</summary>
- internal readonly struct AlertContext
- {
- /*********
- ** Accessors
- *********/
- /// <summary>The source which triggered the alert.</summary>
- public string Source { get; }
-
- /// <summary>The elapsed milliseconds.</summary>
- public double Elapsed { get; }
-
-
- /*********
- ** Public methods
- *********/
- /// <summary>Construct an instance.</summary>
- /// <param name="source">The source which triggered the alert.</param>
- /// <param name="elapsed">The elapsed milliseconds.</param>
- public AlertContext(string source, double elapsed)
- {
- this.Source = source;
- this.Elapsed = elapsed;
- }
-
- /// <summary>Get a human-readable text form of this instance.</summary>
- public override string ToString()
- {
- return $"{this.Source}: {this.Elapsed:F2}ms";
- }
- }
-}