diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-01-26 19:52:31 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-01-26 19:52:31 -0500 |
commit | 910b4a2c4361c429b09bd35fa52d51b24cc17bc2 (patch) | |
tree | ce01c8789d56d1e0d38869879024368f8b888e41 /src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounterEntry.cs | |
parent | 22a0a32b6d959946bfd80bf0ca9796378f36e0cd (diff) | |
download | SMAPI-910b4a2c4361c429b09bd35fa52d51b24cc17bc2.tar.gz SMAPI-910b4a2c4361c429b09bd35fa52d51b24cc17bc2.tar.bz2 SMAPI-910b4a2c4361c429b09bd35fa52d51b24cc17bc2.zip |
tweak namespace
Diffstat (limited to 'src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounterEntry.cs')
-rw-r--r-- | src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounterEntry.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounterEntry.cs b/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounterEntry.cs new file mode 100644 index 00000000..8adbd88d --- /dev/null +++ b/src/SMAPI/Framework/PerformanceMonitoring/PerformanceCounterEntry.cs @@ -0,0 +1,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; + } + } +} |