using System;
namespace StardewModdingAPI.Framework.PerformanceMonitoring
{
/// A single performance counter entry.
internal readonly struct PerformanceCounterEntry
{
/*********
** Accessors
*********/
/// When the entry occurred.
public DateTime EventTime { get; }
/// The elapsed milliseconds.
public double ElapsedMilliseconds { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// When the entry occurred.
/// The elapsed milliseconds.
public PerformanceCounterEntry(DateTime eventTime, double elapsedMilliseconds)
{
this.EventTime = eventTime;
this.ElapsedMilliseconds = elapsedMilliseconds;
}
}
}