It is defined in FSharp.PowerPack.Compatibility.dll, in the module Microsoft.FSharp.Compatibility.OCaml.Sys. Its code (if you don't want to add the reference) is:

1
2
3
4
5
6
let time() = 
   try mainThread.Force().TotalProcessorTime.TotalSeconds
   with _ -> 
     // If the above failed, e.g. because main thread has exited, then do the following
     System.Diagnostics.Process.GetCurrentProcess().UserProcessorTime.TotalSeconds
By on 10/22/2012 1:12 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper