summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounterEntry.cs
blob: 8adbd88dcea696c46b4fd98dad6afbd12aca428d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;

namespace StardewModdingAPI.Framework.PerformanceMonitoring
{
    /// <summary>A single performance counter entry.</summary>
    internal struct PerformanceCounterEntry
    {
        /*********
        ** Accessors
        *********/
        /// <summary>When the entry occurred.</summary>
        public DateTime EventTime { get; }

        /// <summary>The elapsed milliseconds.</summary>
        public double ElapsedMilliseconds { get; }


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="eventTime">When the entry occurred.</param>
        /// <param name="elapsedMilliseconds">The elapsed milliseconds.</param>
        public PerformanceCounterEntry(DateTime eventTime, double elapsedMilliseconds)
        {
            this.EventTime = eventTime;
            this.ElapsedMilliseconds = elapsedMilliseconds;
        }
    }
}