Stopwatch class

A simple stopwatch interface to measure elapsed time.

A simple stopwatch interface to measure elapsed time.

Constructors

Stopwatch ( )
Creates a Stopwatch in stopped state with a zero elapsed count.

Instance Properties

frequency int
read-only
elapsedTicks int
read-only
elapsed Duration
read-only
elapsedMicroseconds int
read-only
elapsedMilliseconds int
read-only
isRunning bool
read-only

Instance Methods

start ( ) → void
Starts the Stopwatch.
stop ( ) → void
Stops the Stopwatch.
reset ( ) → void
Resets the elapsed count to zero.