// 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.
*/
///
/// Provider for IStopwatch objects.
///
public interface IStopwatchProvider
{
///
/// Starts a new stopwatch object.
///
/// New stopwatch object; started at the time of the request.
IStopwatch StartStopwatch();
}
}