Code Monkey home page Code Monkey logo

howlong's Introduction

HowLong

Build Status Code Health PyPI version

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.

howlong's People

Contributors

aniketrege avatar kennethgoodman avatar llluma avatar arafsheikh avatar flyingpot avatar harshtheworkman avatar rkrp avatar

Watchers

James Cloos avatar Nischitha K N avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.