A class for handling progress
readonly
ElapsedTime: DateInterval
Gets the elapsed time since the progress was started
readonly
PercentageCompleted: number | null
Gets the percentage of the progress that has been completed
readonly
TotalCount: number | null
Gets the total count of the progress
calculateEstimatedTimeEnroute(): DateInterval | null
Calculatees the estimated time enroute
calculateEstimatedTimeOfArrival(): Date | null
Calculates the estimated time of arrival
incrementCounter(): void
Increments the counter by 1
Adds an event listener
const progress = new Progress(); progress.on('change', (progress) => { console.log(progress.toFormattedString()); }); progress.incrementCounter(); // fires the 'change' event
setCounter(value: number): void
Sets the counter to a specific value
setTotalCount(value: number): void
Sets the total count of the progress
toFormattedString(format?: string): string
Converts the progress to a formatted string
readonly
DEFAULT_TO_STRING_FORMAT