Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/eta"

Index

Functions

Functions

Const eta

  • eta(connectionSpeed: number, remaining: number): string
  • Get the estimated time to finish an operation

    Parameters

    • connectionSpeed: number

      The connection speed (in KB/s)

    • remaining: number

      The remaining data to be transferred (in MB)

    Returns string

    Returns the ETA in the format HH : MM : SS

format

  • format(secondsRemaining: number): string
  • Converts time from seconds to the format HH : MM : SS

    Parameters

    • secondsRemaining: number

      The amount of seconds to be converted

    Returns string

    Returns the formatted time

Generated using TypeDoc