Skip to content

feat: add reset functionality for timer#139

Open
snkhn007 wants to merge 1 commit into
JIYAJAIN30:mainfrom
snkhn007:feat-add-reset-timer
Open

feat: add reset functionality for timer#139
snkhn007 wants to merge 1 commit into
JIYAJAIN30:mainfrom
snkhn007:feat-add-reset-timer

Conversation

@snkhn007
Copy link
Copy Markdown

@snkhn007 snkhn007 commented Jun 5, 2026

This PR adds a Reset button to the productivity timer.]

Changes Made

  • Added a Reset button alongside the Start and Stop buttons.
  • Implemented a resetTimer() function.
  • Timer now resets instantly to 00:00:00.
  • Timer automatically stops when reset.
  • Added initialization to ensure the timer displays 00:00:00 correctly.

Testing

  • Started the timer and verified it increments correctly.
  • Clicked Reset and verified the timer resets to 00:00:00.
  • Verified the timer stops automatically after reset.
  • Verified the timer can be started again after resetting.

Fixes #115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add reset functionality for timer

1 participant