Move clock into IO.

This commit is contained in:
Bob Nystrom
2014-02-04 08:49:16 -08:00
parent 4e10445952
commit 8d316396e1
6 changed files with 17 additions and 20 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ class NthToggle is Toggle {
}
}
var start = OS.clock
var start = IO.clock
var n = 100000
var val = true
var toggle = new Toggle(val)
@@ -66,4 +66,4 @@ for (i in 0...n) {
IO.print(ntoggle.value)
IO.print("elapsed: " + (OS.clock - start).toString)
IO.print("elapsed: " + (IO.clock - start).toString)