https://github.com/sendyhalim/ghronometer
A simple Golang package to count elapsed time for a (script|command line tool) to finish
https://github.com/sendyhalim/ghronometer
Last synced: 8 months ago
JSON representation
A simple Golang package to count elapsed time for a (script|command line tool) to finish
- Host: GitHub
- URL: https://github.com/sendyhalim/ghronometer
- Owner: sendyhalim
- Created: 2014-12-15T07:36:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-20T14:26:35.000Z (over 11 years ago)
- Last Synced: 2025-06-02T03:33:59.192Z (about 1 year ago)
- Language: Go
- Size: 211 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Ghronometer
Just a simple tool to count elapsed time for a (script|command line tool) to finish
[](https://travis-ci.org/sendyhalim/ghronometer)
##Installation
Fire up terminal, run
```sh
go get github.com/sendyhalim/ghronometer
```
##Example Usage
```sh
ghronometer composer update
Composer could not find a composer.json file in /home/sendy
To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section
elapsed time: 58 ms
```
```sh
ghronometer composer self-update
You are already using composer version 523aef76d0fa29c18bf42264e88fc9b58acf825c.
elapsed time: 2326 ms
```
```sh
ghronometer curl google.com -I
301 Moved
301 Moved
The document has moved
here.
elapsed time: 173 ms
```
This package adds elapsed time in `ms` after each command has finished :), feel free to contribute.
##Root command
If you need to run command with root access(e.g in ubuntu `sudo`):
```
sudo cp $GOPATH/bin/ghronometer /usr/bin/ghronometer
```
just remember that you need to re-run above command everytime you update `ghronometer` package
##License
Ghronometer is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)