Skip to main content

Class: Stopwatch

stopwatch/src.Stopwatch

Constructors

constructor

new Stopwatch(digits?)

Parameters

NameTypeDefault value
digitsnumber2

Defined in

projects/utilities/packages/stopwatch/src/index.ts:25

Properties

#end

Private #end: null | number

Defined in

projects/utilities/packages/stopwatch/src/index.ts:20


#start

Private #start: number

Defined in

projects/utilities/packages/stopwatch/src/index.ts:15


digits

digits: number

Defined in

projects/utilities/packages/stopwatch/src/index.ts:10

Accessors

duration

get duration(): number

Returns

number

Defined in

projects/utilities/packages/stopwatch/src/index.ts:34


running

get running(): boolean

Returns

boolean

Defined in

projects/utilities/packages/stopwatch/src/index.ts:41

Methods

reset

reset(): Stopwatch

Returns

Stopwatch

Defined in

projects/utilities/packages/stopwatch/src/index.ts:57


restart

restart(): Stopwatch

Returns

Stopwatch

Defined in

projects/utilities/packages/stopwatch/src/index.ts:48


start

start(): Stopwatch

Returns

Stopwatch

Defined in

projects/utilities/packages/stopwatch/src/index.ts:66


stop

stop(): Stopwatch

Returns

Stopwatch

Defined in

projects/utilities/packages/stopwatch/src/index.ts:78


toString

toString(): string

Returns

string

Defined in

projects/utilities/packages/stopwatch/src/index.ts:86