[corlib] Implement ExecutionContext flow for async infrastructure. Fixes #24757
[mono.git] / mcs / class / corlib / System.Threading / Watch.cs
index 86a06d7ef50f2797abde83c19b84c76f26c365e3..ab75eb9ab95e499eed6300f3fd18d9fbb59abe01 100644 (file)
 //
 //
 
-#if NET_4_0 || BOOTSTRAP_NET_4_0
+#if NET_4_0
 using System;
 
 namespace System.Threading
 {
-       internal class Watch
+       internal struct Watch
        {
-               public Watch ()
-               {
-                       startTicks = TicksNow ();
-               }
-               
                long startTicks;
                
                public static Watch StartNew ()
                {
-                       Watch temp = new Watch ();
-                       temp.Start ();
-                       return temp;
+                       Watch watch = new Watch ();
+                       watch.Start ();
+                       return watch;
                }
                
                public void Start ()