If you’d rather not maintain template sensors for this: I’ve written a custom integration, Stopwatch Plus, that handles start/pause/resume/reset natively, survives restarts, and has a dashboard card.
Details and installation: Stopwatch Plus – a stopwatch with live dashboard card, source entity binding and interval events
(Disclosure: it’s my own project.)