Options
All
  • Public
  • Public/Protected
  • All
Menu

A utility, static class containing methods that pertain to time counting.

Hierarchy

  • TimeUtil

Index

Methods

fromHours

  • fromHours(hours: number): number
  • Gets the nanoseconds of a hour-formatted time.

    Parameters

    • hours: number

    Returns number

    A numeric value with the hours converted to nanoseconds.

fromMicroSeconds

  • fromMicroSeconds(microseconds: number): number
  • Gets the nanoseconds of a microsecond-formatted time.

    Parameters

    • microseconds: number

    Returns number

    A numeric value with the microseconds converted to nanoseconds.

fromMiliSeconds

  • fromMiliSeconds(miliseconds: number): number
  • Gets the nanoseconds of a milisecond-formatted time.

    Parameters

    • miliseconds: number

    Returns number

    A numeric value with the miliseconds converted to nanoseconds.

fromMinutes

  • fromMinutes(minutes: number): number
  • Gets the nanoseconds of a minute-formatted time.

    Parameters

    • minutes: number

    Returns number

    A numeric value with the minutes converted to nanoseconds.

fromSeconds

  • fromSeconds(seconds: number): number
  • Gets the nanoseconds of a second-formatted time.

    Parameters

    • seconds: number

    Returns number

    A numeric value with the seconds converted to nanoseconds.

Static getPreciseTime

  • getPreciseTime(): number
  • Gets the current time with nanosecond precision.

    Returns number

    A numeric value that represents the current time, in nanoseconds.

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