Quote:
Originally Posted by kona0197
Countdown timer for Linux?
|
I made a command line chronometer for general purposes.
Example, countdown from 5 seconds:
Code:
> chrono -d -q -t 00:00:05.00
< --> 00:00:04.75
And many other options and uses are possible:
Code:
chrono is a program to measure time for general purposes.
Usage:
Start chronometer from zero:
chrono
Example: chrono
Start chronometer from a specified time:
chrono --start-from <time>
Example: chrono --start-from 00:00:25.50
Keyboard keys:
ESC / Q: Quit.
ENTER : Print current time and resume on next line.
SPACE : Pause/resume.
All options:
--help, -h: Show what you are reading right now.
--start-from <time>, -t: Start chronometer at specified time.
--countdown, -d: Chronometer counts down.
--quit, -q: Quit when chronometer over/underflows.
--to-file <optional_filename>, -f: Save time to file, so it can be resumed later.
You can download it from:
https://github.com/7ng3dk/chrono
Compilation instructions for Debian (run as root):
- Install "FreePascal Compiler" if you don't have it: # apt-get install fpc
- Go to source directory and run: # make && make install