Skip to content

A simple command line application that lets you know how long your command has been running.

License

Notifications You must be signed in to change notification settings

mattjegan/HowLong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HowLong

Build Status Code Health PyPI version Open Source Helpers

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 <command>

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.

About

A simple command line application that lets you know how long your command has been running.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages