{"id":27598089,"url":"https://github.com/dawoodkhatri1/stopwatch-using-java-gui","last_synced_at":"2025-04-22T14:10:42.705Z","repository":{"id":288787003,"uuid":"969175158","full_name":"dawoodkhatri1/StopWatch-using-Java-GUI","owner":"dawoodkhatri1","description":"A simple Java Swing application that displays a real-time clock and a stopwatch with start, stop, reset, and lap features. It maintains up to 10 recent lap times using a queue.","archived":false,"fork":false,"pushed_at":"2025-04-19T15:18:07.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T19:05:12.450Z","etag":null,"topics":["clock","educational-project","gui","java","stopwatch","swing","timer"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dawoodkhatri1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-19T15:01:46.000Z","updated_at":"2025-04-19T16:07:12.000Z","dependencies_parsed_at":"2025-04-20T14:46:44.495Z","dependency_job_id":null,"html_url":"https://github.com/dawoodkhatri1/StopWatch-using-Java-GUI","commit_stats":null,"previous_names":["dawoodkhatri1/stopwatch-using-java-gui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawoodkhatri1%2FStopWatch-using-Java-GUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawoodkhatri1%2FStopWatch-using-Java-GUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawoodkhatri1%2FStopWatch-using-Java-GUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawoodkhatri1%2FStopWatch-using-Java-GUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dawoodkhatri1","download_url":"https://codeload.github.com/dawoodkhatri1/StopWatch-using-Java-GUI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250255700,"owners_count":21400410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clock","educational-project","gui","java","stopwatch","swing","timer"],"created_at":"2025-04-22T14:10:41.874Z","updated_at":"2025-04-22T14:10:42.698Z","avatar_url":"https://github.com/dawoodkhatri1.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stopwatch Application\n\nA Java GUI application that combines a digital clock with a stopwatch featuring lap time functionality.\n\n## Features\n\n- **Digital Clock**: Displays current time in 24-hour format (HH:MM:SS)\n- **Stopwatch**: Accurate to milliseconds (HH:MM:SS.mmm)\n- **Lap Times**: Records up to 10 lap times with queue-based management\n- **Controls**:\n  - Start/Pause stopwatch\n  - Reset stopwatch and lap times\n  - Record lap times while running\n\n## Technical Details\n\n- **Data Structures**: Uses Queue (LinkedList implementation) for efficient lap time management\n- **Algorithms**: Efficient time calculations using modulo arithmetic\n- **GUI**: Built with Java Swing\n- **Precision**: Stopwatch updates every 10ms for accurate timing\n\n## How to Run\n\n1. Ensure you have Java JDK installed (version 8 or higher recommended)\n2. Compile the Java file:\n\n   ```bash\n   javac StopWatch.java\n\n### Run the application\n\n    java StopWatch\n\n## Future Enhancements\n\n- Add 12-hour format option for the clock\n- Implement lap time statistics (fastest/slowest/average)\n- Add sound notifications\n- Save lap times to file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdawoodkhatri1%2Fstopwatch-using-java-gui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdawoodkhatri1%2Fstopwatch-using-java-gui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdawoodkhatri1%2Fstopwatch-using-java-gui/lists"}