Class: Stopwatch
stopwatch/src.Stopwatch
Constructors
constructor
• new Stopwatch(digits?
)
Parameters
Name | Type | Default value |
---|---|---|
digits | number | 2 |
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
Defined in
projects/utilities/packages/stopwatch/src/index.ts:57
restart
▸ restart(): Stopwatch
Returns
Defined in
projects/utilities/packages/stopwatch/src/index.ts:48
start
▸ start(): Stopwatch
Returns
Defined in
projects/utilities/packages/stopwatch/src/index.ts:66
stop
▸ stop(): Stopwatch
Returns
Defined in
projects/utilities/packages/stopwatch/src/index.ts:78
toString
▸ toString(): string
Returns
string