Created
August 19, 2014 23:29
-
-
Save PatrickMcDonald/5d60fda0af5b67764236 to your computer and use it in GitHub Desktop.
F# Timer
This file contains hidden or 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 createTimer() = | |
let sw = System.Diagnostics.Stopwatch.StartNew() | |
fun () -> | |
sw.Elapsed | |
let timer = createTimer() | |
// Do some stuff to time | |
timer();; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment