Counter

Counter

Calculates elapsed time for each level and updates given DOMElement. Time converted to 00:00:00 format.

Constructor

new Counter()

construct Counter

.

Source:

construct Counter

Classes

Counter

construct Counter

.

Methods

reset(el)

Mandatory parameter, which will be used to write result.

Source:
Parameters:
Name Type Description
el HTMLDivElemnt

counter element in toolbar

start()

Starts or resets counter.

Source:

diff()

Calculate difference between start/stop and convert it to ISO.

Source:

stop()

summary Stops the counter.

Source:

summary Stops the counter.