Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/rx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Rx.NET/System.Reactive.Core/Reactive/Concurrency/Stopwatch.Default.cs')
-rw-r--r--Rx.NET/System.Reactive.Core/Reactive/Concurrency/Stopwatch.Default.cs48
1 files changed, 0 insertions, 48 deletions
diff --git a/Rx.NET/System.Reactive.Core/Reactive/Concurrency/Stopwatch.Default.cs b/Rx.NET/System.Reactive.Core/Reactive/Concurrency/Stopwatch.Default.cs
deleted file mode 100644
index 028f0ae..0000000
--- a/Rx.NET/System.Reactive.Core/Reactive/Concurrency/Stopwatch.Default.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
-
-#if !NO_STOPWATCH
-using System.Diagnostics;
-
-namespace System.Reactive.Concurrency
-{
- //
- // WARNING: This code is kept *identically* in two places. One copy is kept in System.Reactive.Core for non-PLIB platforms.
- // Another copy is kept in System.Reactive.PlatformServices to enlighten the default lowest common denominator
- // behavior of Rx for PLIB when used on a more capable platform.
- //
- internal class DefaultStopwatch/*Impl*/ : IStopwatch
- {
- private readonly Stopwatch _sw;
-
- public DefaultStopwatch()
- {
- _sw = Stopwatch.StartNew();
- }
-
- public TimeSpan Elapsed
- {
- get { return _sw.Elapsed; }
- }
- }
-}
-#else
-namespace System.Reactive.Concurrency
-{
- // This class is only used on Silverlight in the browser. It mimicks !Stopwatch.HighResolution behavior and suffers from
- // use of absolute time. See work item 486045.
- internal class DefaultStopwatch : IStopwatch
- {
- private readonly DateTime _start;
-
- public DefaultStopwatch()
- {
- _start = DateTime.UtcNow;
- }
-
- public TimeSpan Elapsed
- {
- get { return DateTime.UtcNow - _start; }
- }
- }
-}
-#endif \ No newline at end of file