Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryzmdn/stopwatch
A simple stopwatch with pause, checkpoint, and reset features using queue programming algorithm.
https://github.com/ryzmdn/stopwatch
css html javascript queue stopwatch
Last synced: 2 days ago
JSON representation
A simple stopwatch with pause, checkpoint, and reset features using queue programming algorithm.
- Host: GitHub
- URL: https://github.com/ryzmdn/stopwatch
- Owner: ryzmdn
- Created: 2024-11-28T16:05:25.000Z (29 days ago)
- Default Branch: main
- Last Pushed: 2024-11-28T16:07:03.000Z (29 days ago)
- Last Synced: 2024-11-28T16:39:21.337Z (28 days ago)
- Topics: css, html, javascript, queue, stopwatch
- Language: JavaScript
- Homepage: https://ryzmdn.github.io/stopwatch/
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stopwatch
The Stopwatch is a web-based application built with HTML, CSS, and JavaScript. It provides an interactive and visually appealing way to measure elapsed time. The application employs a **queue algorithm** to manage and process user actions efficiently.
## Features
- **Start/Stop Timer**: Start and stop the timer with ease using intuitive controls.
- **Lap Functionality**: Record multiple lap times during a single session.
- **Clear Timer**: Reset the stopwatch to start a new session.
- **Responsive Design**: Fully responsive UI for seamless use on desktop and mobile devices.
- **Efficient Algorithm**: Implements a queue algorithm to ensure accurate processing of start, stop, and lap actions.## How It Works
1. **User Interaction**: Users interact with buttons to start, stop, record laps, and reset the stopwatch.
2. **Queue Algorithm**: User actions such as "Start," "Stop," and "Lap" are processed in sequence using a queue algorithm to ensure precise timing and proper state management.
3. **Dynamic Updates**: JavaScript dynamically updates the timer display in real-time, and lap times are appended to the DOM as the user records them.
4. **Styling with CSS**: CSS enhances the user interface, providing a clean, modern, and visually appealing design.
## Screenshot
![preview](https://github.com/user-attachments/assets/4054c468-5a0c-4e54-a3bd-2a2f8c0859c7)
## Installation
Follow the steps below to set up the Stopwatch application locally:
```bash
# Clone the repository
git clone https://github.com/ryzmdn/stopwatch.git# Navigate to the project directory
cd stopwatch# Open the project in your code editor
code .# Start a live server or open the index.html file in your browser
```## Usage
1. Open the index.html file in a web browser.
2. Use the "Start" button to begin the timer.
3. Press the "Lap" button to record laps as needed.
4. Use the "Stop" button to pause the timer.
5. Reset the timer with the "Reset" button.## Dependencies
This project uses the following dependencies:
- **HTML5**: Structure and layout of the application.
- **CSS3**: Styling and responsive design.
- **JavaScript**: Core functionality, including timer logic and queue algorithm.No additional libraries or frameworks are required.
## Support
For support, feel free to contact us at [email protected].
## Feedback
We welcome your feedback! If you have suggestions for improvement, please reach out to us at [email protected].
## License
No License.