StopWatch

Description

struct Tinman.Core.Util.StopWatch

Simple helper for measuring time intervals.

Public / Methods

Start


[Pure]
public static method Start → (1)

seconds opt : float64 = 0

Carry over from previous measurement or 0, in seconds.

returns → StopWatch

The running stopwatch.

Starts a new stopwatch.

Stop


[Pure]
public method Stop → ()

returns → StopWatch

The stopped stopwatch.

Stops the stopwatch.

To​String


public override method ToString → ()

returns → string

The formatting time span.

Outputs the duration using FormattingUtil.FormatTimeSpan1.

Public / Attributes

Frequency


public attribute Frequency → (get)

value : float64

The frequency, in Hertz.

Returns the frequency of Seconds.

Milli​Seconds


public attribute MilliSeconds → (get)

value : float64

The measured time, in milli-seconds.

Returns the measured time that has elapsed between Start and Stop.

Seconds


public attribute Seconds → (get)

value : float64

The measured time, in seconds.

Returns the measured time that has elapsed between Start and Stop.