Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration TimeConversion

Conversions from nanoseconds to any other TimeUnit. The value of an enum member is the number of nanoseconds in a single instance of that unit.

Index

Enumeration members

Hour

Hour: = Minute * 60

Microsecond

Microsecond: = Tick * 10

Millisecond

Millisecond: = Microsecond * 1000

Minute

Minute: = Second * 60

Nanosecond

Nanosecond: = 1

Second

Second: = Millisecond * 1000

Tick

Tick: = 100

Functions

nsForUnit

  • Returns the number of nanoseconds in a unit of time.

    Parameters

    • unit: TimeUnit

      the unit whose value in nanoseconds to return

    Returns TimeConversion

    the number of nanoseconds in a single period of the given unit

Generated using TypeDoc