Skip to content

mendezLubin/stopwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a digital stopwatch built with HTML, CSS, and vanilla JavaScript.

It originally used setInterval but was later improved with performance.now() for more accurate time tracking.

Rather than incrementing blindly, it calculates the actual elapsed time at each update, ensuring precision even with lag.

The UI is fully responsive and works on both desktop and mobile.

To address mobile 100vh issues, it uses a JavaScript workaround that sets a CSS variable based on the real viewport height.

The stopwatch includes Play, Pause, and Reset features, and updates every 10 milliseconds for centisecond-level accuracy.

About

A responsive digital stopwatch built with HTML, CSS, and JavaScript. Originally used setInterval, now upgraded to performance.now for accurate time tracking, with mobile 100vh fix.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors