Gjsify LogoGjsify Logo

Opaque datatype that records a start time.

record

Hierarchy

  • Timer

Index

Constructors

Properties

name: string

Methods

  • continue(): void
  • Resumes a timer that has previously been stopped with g_timer_stop(). g_timer_stop() must be called before using this function.

    Returns void

  • destroy(): void
  • elapsed(microseconds: number): number
  • If timer has been started but not stopped, obtains the time since the timer was started. If timer has been stopped, obtains the elapsed time between the time it was started and the time it was stopped. The return value is the number of seconds elapsed, including any fractional part. The microseconds out parameter is essentially useless.

    Parameters

    • microseconds: number

      return location for the fractional part of seconds elapsed, in microseconds (that is, the total number of microseconds elapsed, modulo 1000000), or %NULL

    Returns number

  • is_active(): boolean
  • reset(): void
  • This function is useless; it's fine to call g_timer_start() on an already-started timer to reset the start time, so g_timer_reset() serves no purpose.

    Returns void

  • start(): void
  • Marks a start time, so that future calls to g_timer_elapsed() will report the time since g_timer_start() was called. g_timer_new() automatically marks the start time, so no need to call g_timer_start() immediately after creating the timer.

    Returns void

  • stop(): void
  • Marks an end time, so calls to g_timer_elapsed() will return the difference between this end time and the start time.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • 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