IStopwatch.cs 511 B

1234567891011121314151617
  1. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
  2. using System;
  3. namespace System.Reactive.Concurrency
  4. {
  5. /// <summary>
  6. /// Abstraction for a stopwatch to compute time relative to a starting point.
  7. /// </summary>
  8. public interface IStopwatch
  9. {
  10. /// <summary>
  11. /// Gets the time elapsed since the stopwatch object was obtained.
  12. /// </summary>
  13. TimeSpan Elapsed { get; }
  14. }
  15. }