FSharpx.Extras


TimeMeasurement Module

Functions and values

Function or value Description

compareTwoRuntimes count desc1 f1 desc2 f2

Full Usage: compareTwoRuntimes count desc1 f1 desc2 f2

Parameters:
    count : int
    desc1 : string
    f1 : unit -> 'a
    desc2 : string
    f2 : unit -> 'b

Stops the average runtime for the given functions Afterwards it reports it with the given descriptions

count : int
desc1 : string
f1 : unit -> 'a
desc2 : string
f2 : unit -> 'b

stopAndReportAvarageTime count desc f

Full Usage: stopAndReportAvarageTime count desc f

Parameters:
    count : int
    desc : string
    f : unit -> 'a

Returns: 'a list * float

Stops the average runtime for a given function and applies it the given count Afterwards it reports it with the given description

count : int
desc : string
f : unit -> 'a
Returns: 'a list * float

stopAverageTime count f

Full Usage: stopAverageTime count f

Parameters:
    count : int
    f : unit -> 'a

Returns: 'a list * float

Stops the average runtime for a given function and applies it the given count

count : int
f : unit -> 'a
Returns: 'a list * float

stopTime f

Full Usage: stopTime f

Parameters:
    f : unit -> 'a

Returns: 'a * float

Stops the runtime for a given function

f : unit -> 'a
Returns: 'a * float