IStopwatch.cs 574 B

1234567891011121314151617
  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. namespace System.Reactive.Concurrency
  5. {
  6. /// <summary>
  7. /// Abstraction for a stopwatch to compute time relative to a starting point.
  8. /// </summary>
  9. public interface IStopwatch
  10. {
  11. /// <summary>
  12. /// Gets the time elapsed since the stopwatch object was obtained.
  13. /// </summary>
  14. TimeSpan Elapsed { get; }
  15. }
  16. }