https://github.com/mattjegan/HowLong
A simple command line application that lets you know how long your command has been running.
https://github.com/mattjegan/HowLong
cli howlong process python timing
Last synced: 11 months ago
JSON representation
A simple command line application that lets you know how long your command has been running.
- Host: GitHub
- URL: https://github.com/mattjegan/HowLong
- Owner: mattjegan
- License: apache-2.0
- Created: 2016-03-01T04:12:55.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-10-02T16:28:56.000Z (over 3 years ago)
- Last Synced: 2025-04-13T13:05:22.244Z (11 months ago)
- Topics: cli, howlong, process, python, timing
- Language: Python
- Size: 50.8 KB
- Stars: 18
- Watchers: 3
- Forks: 18
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacktoberfest - howlong
README
# HowLong
[](https://travis-ci.org/mattjegan/HowLong)
[](https://landscape.io/github/mattjegan/HowLong/master)
[](https://badge.fury.io/py/howlong)
[](https://www.codetriage.com/mattjegan/howlong)
A simple command line application that lets you know how long your command has been running.
## Installation
### From PyPi
```
pip install howlong
```
### From source
```
git clone https://github.com/mattjegan/howlong.git
cd HowLong
python setup.py install
```
## Usage
Time a command
```
$ howlong python helloworld.py
Running python helloworld.py
0:00:01.003903
Hello, World!
0:00:02.005022
Finished python helloworld.py
```
Time a process already running
```
$ howlong pid 1234
DEBUG: Running ping -c 500 google.com
INFO:0:01:05.915637
.
.
Finished ping -c 500 google.com
```
Change the interval at which `howlong` times
```
howlong -i 0.5
```
Display help
```
howlong -h
usage: howlong [-h] [-i [interval]] C [C ...]
Time a process
positional arguments:
C a valid command
optional arguments:
-h, --help show this help message and exit
-i [interval] the timer interval, defaults to 1 second
```
## Contributing
### Submitting an issue or feature request
If you find an issue or have a feature request please open an issue at [Github HowLong Repo](https://github.com/mattjegan/howlong).