Skip to content

formatPaceTime

formatPaceTime(paceSeconds, showTenths?): string

Defined in: console-sdk/src/units/index.ts:576

Formats a pace in seconds as M:SS or M:SS.t, truncating to match the console display (the firmware floors rather than rounds when it drops the sub-second digit). Integer-tenths arithmetic avoids binary-float artefacts such as 21.9 % 1 === 0.8999….

number

Pace in seconds (already in the target unit).

boolean = false

Whether to append .t tenths; defaults to false.

string

A string like "2:15" or "2:15.3", or "--:--" for a zero pace.