Logo GenPRES

StopWatch Module

Runs a function, writes the elapsed time in milliseconds with a message to the console and returns the result of the function.

Functions and values

Function or value Description

clockFunc msg f

Full Usage: clockFunc msg f

Parameters:
    msg : string
    f : unit -> 'a

Returns: 'a
Type parameters: 'a

Measures the time it takes to execute a function Prints the result to the console with the given message and the time in milliseconds

msg : string
f : unit -> 'a
Returns: 'a

Type something to start searching.