Got at least one data fetching method working; turns out, we can't use a patched LogicStack to get the data
This commit is contained in:
27
Vendor/EmbedIO-3.5.2/Internal/TimeKeeper.cs
vendored
Normal file
27
Vendor/EmbedIO-3.5.2/Internal/TimeKeeper.cs
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace EmbedIO.Internal
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a wrapper around Stopwatch.
|
||||
/// </summary>
|
||||
public sealed class TimeKeeper
|
||||
{
|
||||
private static readonly Stopwatch Stopwatch = Stopwatch.StartNew();
|
||||
|
||||
private readonly long _start;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TimeKeeper"/> class.
|
||||
/// </summary>
|
||||
public TimeKeeper()
|
||||
{
|
||||
_start = Stopwatch.ElapsedMilliseconds;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the elapsed time since the class was initialized.
|
||||
/// </summary>
|
||||
public long ElapsedTime => Stopwatch.ElapsedMilliseconds - _start;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user