How It Works:
Start Timer: The startTimer function uses setInterval to update the time every 10 milliseconds.
Stop/Reset Timer:
The stopTimer function clears the interval, and resetTimer resets all values and clears the lap history.
Lap History:
When the “Lap” button is clicked, the current time is saved and displayed below.