update (currentTime) {
    if (currentTime - this.lastTime >= this.interval) {
      this.callTime++
      this.callListeners()
      this.lastTime = currentTime
    }
  }
/**
   * Checks if enough time has passed for timer update, and if it has, updates
   *
   * @param {number} currentTime
   */
Checks if enough time has passed for timer update, and if it has, updates
@param {number} currentTime
Checks if enough time has passed for timer update and if it has updates @param { number } currentTime
update (currentTime) {
    if (currentTime - this.lastTime >= this.interval) {
      this.callTime++
      this.callListeners()
      this.lastTime = currentTime
    }
  }
update ( currentTime ) { if ( currentTime - this . lastTime >= this . interval ) { this . callTime ++ this . callListeners ( ) this . lastTime = currentTime } }
Checks if enough time has passed for timer update, and if it has, updates
 @param {number} currentTime
Checks if enough time has passed for timer update and if it has updates @param { number } currentTime