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….
Parameters
Section titled “Parameters”paceSeconds
Section titled “paceSeconds”number
Pace in seconds (already in the target unit).
showTenths?
Section titled “showTenths?”boolean = false
Whether to append .t tenths; defaults to false.
Returns
Section titled “Returns”string
A string like "2:15" or "2:15.3", or "--:--" for a zero pace.