Repository files navigation
A simple and semi accurate timer utility to time commandline executions times.
My preferred installation method.
clone the repository.
'cd <directory cloned to>'
'sudo pip install .'
'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 <start time> <end time>' returns the result of <end time> - <start time> 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 <start time> <end time>' returns the result of <end time> - <start time> 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.
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'.
You can’t perform that action at this time.