Next Previous Up Top Contents Index

4 The MLWorks Interactive Environment Library

4.6 Timing: the Timer structure

The Timer structure is a convenient programmatic interface to the Basis library timers.

structure Timer:
  sig
    val time: ('a ->'b) -> 'a -> 
              ({gc: time, sys: time, usr: time} * time)
    val timeIterations: int -> ('a -> 'b) -> 'a ->
              ({gc: time, sys: time, usr: time} * time)
    val printTiming: {function: 'a -> 'b, name: string, 
                     outputter: string -> unit} -> 'a -> 'b
  end

time
timeIterations
printTiming

MLWorks Reference Manual version 2.0 - 29 Jul 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker