Skip to content

jalen-thornhill/digital-console-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digital Console Clock

A C++ console clock with zero-padded time, colorized seconds, and a clean class-based design.


Overview

The Digital Console Clock is a lightweight C++ program that turns your Windows terminal into a live, real-time clock.
I built it to sharpen my skills with:

  • Modern C++17 (<chrono>, <thread>, <iomanip>)
  • Windows-specific console APIs (SetConsoleTextAttribute)
  • Modular, header-driven class design

Screenshots

Clock running at 10:00:05

Clock running at 23:59:59


Build Instructions

Open a Developer PowerShell or comand prompt in the project folder and compile both source files:

# Using MinGW g++
g++ main.cpp clock.cpp -o clock.exe

Usage

./clock.exe

Enter the starting hour (0–23), minute (0–59), and second (0–59).

Watch the clock update every second.

Press Ctrl + C to stop.


Prerequisites

  • Windows 10/11 console (PowerShell or CMD)
  • A C++17-capable compiler: MinGW’s g++ or Visual Studio’s MSVC

About

A C++ console clock with color and modular design

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages