<PackageReference Include="System.Reactive" Version="4.2.0" />

IStopwatch

public interface IStopwatch
Abstraction for a stopwatch to compute time relative to a starting point.
TimeSpan Elapsed { get; }

Gets the time elapsed since the stopwatch object was obtained.