Skip to content

kimtahen/terminalclk-app-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terminal-clock

Digital clock with stopwatch and timer function

  • ncurses library used for displaying character on terminal
  • thread library used for switching functions

Documentation

Dependencies

this program needs ncurses

sudo apt-get install libncurses5-dev libncursesw5-dev

How to run

  1. build
make
  1. run
./main.out -v [refresh interval of 1~1000]
  1. clean
make clean

How to use

  • 'h' and 'l' key for switching functions
  • 's' and 'r' key for 'stop/resume' and 'reset'
  • 'm' key for switching among hour, minute and seconds in timer function
  • 'j' and 'k' key for 'decrease' and 'increase' numbers in timer function

Addtional information

  • This program uses linux threads, so default refresh interval setting of 1 milliseconds for stopwatch and timer can use quite long cpu time.
  • By using -v flag, the refresh interval can be adjusted.
  • 1 is the highest and 1000 is the lowest (1 milliseconds, 1000 milliseconds = 1 seconds)

Snapshot

clock stopwatch timer timer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published