Workshop › OutRun-style Racer › Step 37 of 44
Next to the lap we show its time in seconds with one decimal: Lap 1/3 12.4. A small arrow function turns frames into
that text.
```js
const seconds = (f) => (f / 60).toFixed(1)
ctx.fillText('Lap ' + lap + '/' + LAPS + ' ' + seconds(lapTime), W - 10, 22)
```seconds divides frames by 60 and toFixed(1) writes the number with one decimal, as text: 744 frames → '12.4'.draw, above ctx.fillStyle = '#0f172a', write the seconds line.+ ' ' + seconds(lapTime) after LAPS.Skills: Drawing on a canvas