progs/bfc1.scala
changeset 637 936560fab865
parent 636 18f9c0cd8675
child 648 a64c9a1007ee
equal deleted inserted replaced
636:18f9c0cd8675 637:936560fab865
    71   for (i <- 0 until n) code
    71   for (i <- 0 until n) code
    72   val end = System.nanoTime()
    72   val end = System.nanoTime()
    73   (end - start) / (n * 1.0e9)
    73   (end - start) / (n * 1.0e9)
    74 }
    74 }
    75 
    75 
    76 // mandelbrot program
    76 // the mandelbrot program
    77 val b0 = load_bff("mandelbrot.bf")
    77 val b0 = load_bff("mandelbrot.bf")
    78 
    78 
    79 println(s"${time_needed(1, compile_run(b0))} secs")
    79 println(s"${time_needed(1, compile_run(b0))} secs")
    80 
    80 
    81 
    81