IStopwatch.cs 589 B

12345678910111213141516171819
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the Apache 2.0 License.
  3. // See the LICENSE file in the project root for more information.
  4. using System;
  5. namespace System.Reactive.Concurrency
  6. {
  7. /// <summary>
  8. /// Abstraction for a stopwatch to compute time relative to a starting point.
  9. /// </summary>
  10. public interface IStopwatch
  11. {
  12. /// <summary>
  13. /// Gets the time elapsed since the stopwatch object was obtained.
  14. /// </summary>
  15. TimeSpan Elapsed { get; }
  16. }
  17. }