interface for disposable objects

Hierarchy

  • default

Implements

Constructors

  • Initializes a new instance of the Timer class, and sets all the properties to their initial values.

    Returns default

  • Initializes a new instance of the Timer class, and sets the Interval property to the specified number of milliseconds.

    Parameters

    • interval: number

    Returns default

Properties

#autoReset: boolean
#elapsedEvent: default<{
    signalTime: number;
}>

Type declaration

  • signalTime: number
#enabled: boolean
#interval: number
#intervalPointer?: unknown

Accessors

  • get autoReset(): boolean
  • Gets a Boolean indicating whether the Timer should raise the Elapsed event only once(false) or repeatedly(true).

    Returns boolean

  • set autoReset(value): void
  • Sets a Boolean indicating whether the Timer should raise the Elapsed event only once(false) or repeatedly(true).

    Parameters

    • value: boolean

    Returns void

  • get enabled(): boolean
  • Gets a value indicating whether the Timer should raise the Elapsed event.

    Returns boolean

  • set enabled(value): void
  • Sets a value indicating whether the Timer should raise the Elapsed event.

    Parameters

    • value: boolean

    Returns void

  • get interval(): number
  • Gets the interval, expressed in milliseconds, at which to raise the Elapsed event.

    Returns number

  • set interval(value): void
  • Sets the interval, expressed in milliseconds, at which to raise the Elapsed event.

    Parameters

    • value: number

    Returns void

Methods

  • Starts raising the Elapsed event by setting Enabled to true.

    Returns void

  • Stops raising the Elapsed event by setting Enabled to false.

    Returns void

Generated using TypeDoc