Stopwatch: removed #if NET_4_0 for suppression of negative elapsed
authorAndrey Akinshin <andrey.akinshin@gmail.com>
Mon, 16 Mar 2015 12:37:45 +0000 (14:37 +0200)
committerAndrey Akinshin <andrey.akinshin@gmail.com>
Mon, 16 Mar 2015 12:37:45 +0000 (14:37 +0200)
mcs/class/System/System.Diagnostics/Stopwatch.cs

index 3e661084520a58255d2ec0b9e9761de845493223..404a08c8e9b72e31478b9ec97ee640869979d8c2 100644 (file)
@@ -113,10 +113,8 @@ namespace System.Diagnostics
                        if (!is_running)
                                return;
                        elapsed += GetTimestamp () - started;
-#if NET_4_0
                        if (elapsed < 0)
                                elapsed = 0;
-#endif
                        is_running = false;
                }