Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Timer

Index

Constructors

constructor

  • new Timer(timeout: number, interval: number, callbackEnd: function): Timer
  • Parameters

    • timeout: number
    • interval: number
    • callbackEnd: function
        • (): void
        • Returns void

    Returns Timer

Properties

Private callbackEnd

callbackEnd: function

Type declaration

    • (): void
    • Returns void

Private interval

interval: number

Private running

running: boolean = false

Private seconds

seconds: number = 0

Private startDate

startDate: Date

Private timeout

timeout: number

Private timeoutId

timeoutId: any

Private timerId

timerId: any

Methods

pause

  • pause(): number

reset

  • reset(): void

restart

  • restart(callback: function): 0 | -1
  • Parameters

    • callback: function
        • (): void
        • Returns void

    Returns 0 | -1

start

  • start(callback: function): number
  • Parameters

    • callback: function
        • (): void
        • Returns void

    Returns number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc