Skip to content

Instantly share code, notes, and snippets.

@akr4
Created January 13, 2012 02:15
Show Gist options
  • Save akr4/1604256 to your computer and use it in GitHub Desktop.
Save akr4/1604256 to your computer and use it in GitHub Desktop.
Console StopWatch
while (true) {
readLine
println("start")
val start = System.currentTimeMillis
readLine
val end = System.currentTimeMillis
println("end")
println("%.1f".format( (end - start).toDouble / 1000))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment