Update src/ui/Timer.tsx

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Nate Sesti 2025-07-19 22:55:25 -07:00 • committed by GitHub
parent 3deb6f753a
commit 85ba9fd49e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,7 @@ const Timer: React.FC<TimerProps> = ({ startTime, color = "gray" }) => {
const now = Date.now();
const elapsedSeconds = Math.floor((now - startTime) / 1000);
setElapsed(elapsedSeconds);
}, 100); // Update every 100ms for smooth display
}, 1000); // Update every 1000ms for efficient display
return () => clearInterval(interval);
}, [startTime]);