A complete system for timing racing teams, with database storage and report generation.
- 🕒 Digital stopwatch with second precision
- 🏎️ Lap control and split times
- 💾 Data storage in MySQL database
- 📊 Report generation with team rankings
- 🖥️ Intuitive graphical interface built with Java Swing
- ⏯️ Full race control: Start, Lap, Finish
- 🔄 Automatic total time calculation
Before starting, make sure you have the following installed:
- Java JDK 17 or higher
- MySQL Server 8.0 or higher
- Git (optional, to clone the repository)
- Clone the repository:
git clone https://github.com/your-username/cronometro-corrida.git
-
Open the project in your favorite IDE (Eclipse, NetBeans, IntelliJ, etc.)
-
Configure the MySQL database:
CREATE DATABASE bd_relatorio;
USE bd_relatorio;
CREATE TABLE RELATORIOS (
COD_EQUIPE INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
NOME_EQUIPE VARCHAR(255) NOT NULL,
NOME_PILOTO VARCHAR(255) NOT NULL,
TEMPO_TOTAL VARCHAR(255) NOT NULL,
TEMPO_TOTAL_SEG INT NOT NULL
);
- Update the database connection credentials in the Java code if necessary (user, password, URL).
- Run the program through your IDE.
- Fill in the team and driver information.
- Use the available buttons to control the race:
▶️ Start: Starts the stopwatch- 🔄 Lap: Records the split time
- 🏁 Finish: Finalizes the team's total time
- 💾 Save: Stores the data in the database
- 📊 Report: Displays the team rankings based on total time
Technology | Version | Description |
---|---|---|
Java | 17 | Main application logic |
Swing | 1.1 | Graphical user interface |
MySQL | 8.0 | Data storage |
JDBC | 4.2 | Database connectivity |