This repository was archived by the owner on Nov 10, 2025. It is now read-only.
Stopwatch-EngInternAssessmentSubmission #66
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The What:
Stopwatch Application
An app that allows users to start, stop (pause), lap, and reset a stopwatch.
The Why:
The changes are useful for user experience and complete the stopwatch creation. The changes allow users to start, stop, lap, and reset the stopwatch. This could come in handy when the user is completing a task or generally trying to keep the time.
How:
Utilization of:
App.tsx:
- also the interval updates the lapTime state every second directly
- unlike stopwatch.tsx, app.tsx relies solely on lap time
StopWatch.tsx:
StopWatchButton.tsx:
Testing:
Tested using Android Studio and an Emulator Pixel 5 and tested each functionality based on the given project goal description:
- The stopwatch should start counting when the user clicks the start button.
- The stopwatch should stop counting when the user clicks the stop button.
- The stopwatch should reset to zero when the user clicks the reset button.
- The stopwatch should record and display laps when user clicks the lap button.
I can confirm each project goal has been met.
Screenshots:
Stopwatch Incrementing:

Stopwatch Reset:

Stopwatch Lap:
