This is a simple terminal-based Python project that combines:
- 🕒 Clock — Displays the current system time.
- ⏰ Alarm — Lets you set a custom alarm time.
- ⏳ Stopwatch — Counts elapsed time in HH:MM:SS format.
All features are implemented in a single file under 100 lines, following open-source contribution guidelines.
- Works completely in the terminal (no GUI or external modules).
- Cross-platform: runs on Windows, macOS, and Linux.
- Clean menu with user-friendly navigation.
- Uses match-case (Python 3.10+).
- Open the terminal and navigate to the folder containing the file.
- Run the following command:
python clock_alarm_stopwatch.py
🧠 Code Logic Summary
clear() → clears the console output for a fresh display.
show_clock() → shows real-time system clock.
set_alarm() → triggers a simple text-based alarm at the set time.
stopwatch() → counts time until manually stopped.
main() → provides a menu and controls program flow.