DEV Community

Ben Mulford
Ben Mulford

Posted on

2

Simple Stopwatch Web App

I built a new small project for my portfolio. It was good practice in Javascript and CSS. Check out my stopwatch app: https://thedevbc.github.io/stopwatch/
Code available at https://github.com/thedevbc/stopwatch

Feel free to give some feedback.

The challenge with doing this in the browser is that the document can't be updated every millisecond. Hundreds of a second was possible, but it really didn't matter to the human eye. I decided to only show tenths of a second in the clock display, but then when recording values (laps) it is using time stamps which are accurate down to the millisecond.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay