Next Previous Up Top Contents Index

4.6 Timing: the Timer structure

timeIterations

Function

Structure

Shell.Timer

Type

val timeIterations: int -> ('a -> 'b) -> 'a -> ({gc: time, sys: time, usr: time} * time)

Syntax

timeIterations n f x -> t

Arguments

n
The number of times to iterate.

f
An ML function to time.

x
Arguments to apply f to.

Values

t
The time elapsed.

Description

Returns the time taken to perform n applications of f to x.


MLWorks Reference Manual version 2.0 - 29 Jul 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker