using System; namespace StardewModdingAPI.Framework.PerformanceMonitoring { /// A peak invocation time. internal struct PeakEntry { /********* ** Accessors *********/ /// The actual execution time in milliseconds. public double ExecutionTimeMilliseconds { get; } /// When the entry occurred. public DateTime EventTime { get; } /// The sources involved in exceeding the threshold. public AlertContext[] Context { get; } /********* ** Public methods *********/ /// Construct an instance. /// The actual execution time in milliseconds. /// When the entry occurred. /// The sources involved in exceeding the threshold. public PeakEntry(double executionTimeMilliseconds, DateTime eventTime, AlertContext[] context) { this.ExecutionTimeMilliseconds = executionTimeMilliseconds; this.EventTime = eventTime; this.Context = context; } } }