Cycling through Leiden means a lot of traffic lights, and a workout that keeps counting while I stand still makes my average speed look worse than the ride was. Auto-Pause is the setting for that.
Open Settings on the watch, go to Workout and tap Auto-Pause, then turn it on. Apple says it applies to outdoor running and cycling workouts. The watch then pauses the workout for you.
Settings > Workout > Auto-Pause
You can also pause by hand by pressing the side button and the Digital Crown together. While you’re in that menu, End Workout Confirmation is worth a look: with it on the watch asks if you really want to end the workout, so a stray press doesn’t wipe out the last hour. The Start Workout Reminder and End Workout Reminder switches are on by default, and you can turn them off there.
Units of Measure sits in the same place, if the watch uses the wrong units for pool length or cycling.
The caveat is the scope. Auto-Pause only covers outdoor running and cycling. A swim, a hike or an indoor session isn’t affected, so don’t expect the clock to stop there. Apple’s page for this is written for watchOS 10, so menu names may differ on a newer version.
Further reading: Change settings in Workout on Apple Watch Ultra