https://github.com/comfortablesoftware/clitimer
Simple time provider and two point time differential calculator
https://github.com/comfortablesoftware/clitimer
cli command-line-tool commandline-interface simple timer
Last synced: 4 months ago
JSON representation
Simple time provider and two point time differential calculator
- Host: GitHub
- URL: https://github.com/comfortablesoftware/clitimer
- Owner: ComfortableSoftware
- License: gpl-3.0
- Created: 2022-07-08T05:02:40.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-12T22:38:07.000Z (8 months ago)
- Last Synced: 2025-01-12T20:30:25.576Z (6 months ago)
- Topics: cli, command-line-tool, commandline-interface, simple, timer
- Language: Python
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cliTimer
- A simple and semi accurate timer utility to time commandline executions times.
- #### My preferred installation method.
1. clone the repository.
2. 'cd \'
3. 'sudo pip install .'
- ### COMMAND LINE OPTIONS
- 'cliTimer -h' for help.
- 'cliTimer -t' returns a date in the format '2022/06/06 19:25:04.354975'
- 'cliTimer -m' returns a date in the format '1654565154.486381'
- 'cliTimer -r \ \' returns the result of \ - \ in the format '2022/06/06 19:25:04.354975'
- Start time and end time can be entered in either supported format.
- The '-t' format needs to be quoted, the '-m' can be either quoted or not.
- 'cliTimer -s \ \' returns the result of \ - \ in the format '1654565154.486381'
- Start time and end time can be entered in either supported format.
- The '-t' format needs to be quoted, the '-m' can be either quoted or not.
- '-f' switch to full result format.
- Full result format will be one of the following based on the '-r' or '-s' choice made.
- ---
- End Time 1654565154.486381
- Start Time 2022/06/06 19:25:04.354975
- = Result 0000/00/00/ 00:00:51.868594
- ___
- or
- ___
- End Time 1654565154.486381
- Start Time 2022/06/06 19:25:04.354975
- = Result 51.868594
- Start and end times are always displayed as entered.
- ##### KNOWN ISSUES
- Using '-t' format is less accurate than using -m format.
- Easiest workaround is to enter start and end times as '-m' and get results as '-r'.