Progress logger

Hierarchy

Implements

Constructors

  • Constructor

    Parameters

    • title: string

      title

    • countFrequency: number

      count frequency

    • timeFrequency: number

      time frequency in seconds

    • unit: string

      unit

    Returns Progress

Properties

active: boolean = true

Active flag

countFrequency: number

Log count frequency

decimalFormat: {
    format: ((num: number) => string);
} = ...

Decimal format

Type declaration

  • format: ((num: number) => string)
      • (num: number): string
      • Parameters

        • num: number

        Returns string

localCount: number = 0

Local count between logs

localTime: Date = ...

Local time between logs

max: number = null

Max number

progress: number = 0

Total progress

timeFrequency: number

Log time frequency, stored in milliseconds

title: string

Log Title

unit: string

Log Unit

Methods

  • Get the count frequency

    Returns

    count frequency

    Returns number

  • Get the string percentage of the count and total

    Returns

    string percentage

    Parameters

    • count: number

      current count

    • total: number

      total count

    Returns string

  • Get the total progress

    Returns

    progress

    Returns number

  • Get the time frequency in seconds

    Returns

    time frequency in seconds

    Returns number

  • Set the count frequency

    Parameters

    • countFrequency: number

      count frequency

    Returns void

  • Set the time frequency in seconds

    Parameters

    • timeFrequency: number

      time frequency in seconds

    Returns void

Generated using TypeDoc