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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more