a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
26 lines
910 B
C#
26 lines
910 B
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
|
|
|
|
using System;
|
|
|
|
namespace System.Reactive.Concurrency
|
|
{
|
|
/*
|
|
* The ability to request a stopwatch object has been introduced in Rx v2.0 to reduce the
|
|
* number of allocations made by operators that use absolute time to compute relative time
|
|
* diffs, such as TimeInterval and Delay. This causes a large number of related objects to
|
|
* be allocated in the BCL, e.g. System.Globalization.DaylightTime.
|
|
*/
|
|
|
|
/// <summary>
|
|
/// Provider for IStopwatch objects.
|
|
/// </summary>
|
|
public interface IStopwatchProvider
|
|
{
|
|
/// <summary>
|
|
/// Starts a new stopwatch object.
|
|
/// </summary>
|
|
/// <returns>New stopwatch object; started at the time of the request.</returns>
|
|
IStopwatch StartStopwatch();
|
|
}
|
|
}
|