Skip to content

Nyjako/clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clock

A simple clock application written in C++ using SDL2, featuring a hand-drawn font. Inspired by clock used by Tsoding in his streams

  • Clock:

Animated clock preview

  • Timer:

Animated timer preview

  • Countdown:

Animated countdown preview

Table of Contents

Introduction

This is a basic clock application built using SDL2. The clock displays the current time using a terrible, hand-drawn font created by me.

Features

  • Displays the current time
  • Countdown timer
  • Stopwatch timer

Requirements

To build and run this project, you need the following:

  • C++ compiler
  • Make
  • SDL2
  • SDL2_image

Build

  1. Clone the repository:
    git clone https://github.com/nyjako/clock.git
    cd clock
  2. Build the project:
    make

Usage

Run the clock application with the desired mode:

./Clock <mode> [<duration>]

Modes

  • 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

Planned Features

  • Timer function
  • Countdown function
    • Countdown with minutes and hours as argument
    • Play audio when countdown finish

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A simple clock application

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published