This is a timer that will count down in seconds while showing how much time is left visually
This is the source code for a command line timer that will count down to zero. As a bonus it will also display the amount of time left in seconds. the amount of time (in minutes) and the message displayed are provided by options.
OS X & Linux:
Copy the binary into a folder in your PATH directory (for example ~bin)
cp bin/timer ~/bin/Timer takes the following options
- -t (number) The amount of time to count down in minutes. Required
- -m (string) A message to display next to the timer. Required
- -h Display help
timer -t 5 -m 'turn and talk'
Fork and clone this repo. The source is all in timer.c. Make your changes and then run make to compile and test.
1.0.0 Initial version created
Brooks Patton – @Brooks_Patton
Distributed under the MIT license. See LICENSE for more information.
https://github.com/BrooksPatton/cli-timer
- Fork it (https://github.com/BrooksPatton/cli-timer/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request
