solutions5/bf.scala
changeset 231 eecbc9ae73c2
parent 230 bebe34c975a8
child 244 a359976a6f3e
--- a/solutions5/bf.scala	Thu Dec 06 13:52:50 2018 +0000
+++ b/solutions5/bf.scala	Thu Dec 06 15:15:31 2018 +0000
@@ -216,7 +216,7 @@
   val start = System.nanoTime()
   for (i <- 0 until n) code
   val end = System.nanoTime()
-  (end - start)/1.0e9
+  (end - start)/(n * 1.0e9)
 }
 
 time_needed(1, run(b1))