Timer

Timer

# new Timer(timeopt, stopwatchopt) → {Timer}

Creates a new timer

Parameters:
Name Type Attributes Default Description
time number <optional>
1000

Set the tics for the timer

stopwatch boolean <optional>
false

Set the stopwatch module

Source:
Returns:
Type
Timer
Example
const Timer = require('@igorkowalczyk/countdown')
const timer = new Timer()