timeRemaining

fun ProgressLayoutScope<*>.timeRemaining(prefix: String = "eta ", compact: Boolean = false, elapsedWhenFinished: Boolean = false, elapsedPrefix: String = " in ", style: TextStyle = DEFAULT_STYLE, verticalAlign: VerticalAlign = this.verticalAlign, fps: Int = textFps)

Add a cell that displays the time remaining to this layout.

Parameters

prefix

A string to prepend to the displayed time, such as "eta " or "time left: ". "eta " by default.

compact

If true, the displayed time will be formatted as "MM:SS" if time remaining is less than an hour. false by default.

elapsedWhenFinished

If true, the elapsed time will be displayed when the task is finished. false by default.

elapsedPrefix

A string to prepend to the displayed time when elapsedWhenFinished is true. " in " by default.

style

The style to use for the displayed time.

fps

The number of times per second to update the displayed time. Uses the text fps by default.