Created
July 13, 2018 21:07
-
-
Save cowlike/d70a915f9a3ed3d630ed2f4ee5ef2fd1 to your computer and use it in GitHub Desktop.
F# timer function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let inline runtimeMillisVal (test: unit -> ^a): ^a * int64 = | |
let watch = System.Diagnostics.Stopwatch.StartNew() | |
let result = test() | |
watch.Stop() | |
result, watch.ElapsedMilliseconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment