Class

StopWatch

general~StopWatch()

Constructor

# new StopWatch()

create stop watch for benchmarking

Methods

# Print(nameopt)

print result as a readable string.
Parameters:
Name Type Attributes Description
name string <optional>
name of the measured value.

# Reset()

reset stopwatch.

# Result(nameopt) → {string}

convert result to a readable string.
Parameters:
Name Type Attributes Description
name string <optional>
name of the measured value.
a string describing the runtime.
string

# ResultMs() → {number}

get runtime in ms.
runtime in ms.
number

# Start()

start stopwatch.

# Stop()

stop stopwatch.