• Converts a number from any TimeUnit to nanoseconds.

    Parameters

    • duration: number

      Difference between start and stop time stamps.

    • timeUnit: default

      Time unit for the duration.

    Returns number

    Duration converted to nanoseconds.

Generated using TypeDoc