A simple clock application written in C++ using SDL2, featuring a hand-drawn font. Inspired by clock used by Tsoding in his streams
- Clock:
- Timer:
- Countdown:
This is a basic clock application built using SDL2. The clock displays the current time using a terrible, hand-drawn font created by me.
- Displays the current time
- Countdown timer
- Stopwatch timer
To build and run this project, you need the following:
- C++ compiler
- Make
- SDL2
- SDL2_image
- Clone the repository:
git clone https://github.com/nyjako/clock.git cd clock - Build the project:
make
Run the clock application with the desired mode:
./Clock <mode> [<duration>]-
clock: Displays the current system time../Clock clock
-
countdown <duration>: Runs a countdown for the specified duration../Clock countdown 10s 5m 3h
-
timer: Runs a stopwatch timer that counts from 0../Clock timer
- Timer function
- Countdown function
- Countdown with minutes and hours as argument
- Play audio when countdown finish
This project is licensed under the MIT License. See the LICENSE file for details.


