Created
May 16, 2018 13:10
Star
You must be signed in to star a gist
the description for this gist
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
def time() = System.currentTimeMillis() | |
val t1 = time() | |
val x = calculateSomething(args) | |
val t2 = time() | |
println(t2 - t1) //print the time it took for `x` to be computed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment