Skip to content

Done adding the pause and resume option#49

Merged
FOSSCLUB-LBSITW merged 1 commit into
FOSSCLUB-LBSITW:mainfrom
devikrishna111:Add_Pause
Feb 26, 2026
Merged

Done adding the pause and resume option#49
FOSSCLUB-LBSITW merged 1 commit into
FOSSCLUB-LBSITW:mainfrom
devikrishna111:Add_Pause

Conversation

@devikrishna111
Copy link
Copy Markdown

📌 Description

This PR introduces a Pause and Resume functionality to the Typing Speed Test application.

Previously, users could not pause an ongoing test, which forced them to restart if interrupted. This update improves usability by allowing users to pause the timer without losing progress and resume from the exact remaining time.

The feature ensures accurate WPM calculation by excluding paused duration from the final speed computation.

🔗 Related Issue

Closes: #38


🛠 Changes Made

  • Added a Pause/Resume button to the main UI.
  • Implemented timer pause logic to stop countdown without resetting time.
  • Disabled typing input during pause and re-enabled it on resume.
  • Ensured paused duration is excluded from WPM calculation.
  • Disabled Pause button when the test finishes.
  • Preserved user input and remaining time during pause.

✅ Checklist

  • [✅ ] I have tested my changes
  • [✅ ] My code follows project guidelines
  • [ ✅] I have linked the related issue

@FOSSCLUB-LBSITW FOSSCLUB-LBSITW merged commit 2fa3f70 into FOSSCLUB-LBSITW:main Feb 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Pause and Resume Functionality to Typing Test

2 participants