https://github.com/picandocodigo/howlong
Ruby script to search for a process and tell you how long it's been running on your system in a friendly way
https://github.com/picandocodigo/howlong
Last synced: 6 months ago
JSON representation
Ruby script to search for a process and tell you how long it's been running on your system in a friendly way
- Host: GitHub
- URL: https://github.com/picandocodigo/howlong
- Owner: picandocodigo
- License: mit
- Created: 2014-08-25T15:15:00.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-12-13T01:25:42.000Z (over 4 years ago)
- Last Synced: 2024-03-23T07:23:05.548Z (over 1 year ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/howlong
- Size: 11.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# How long
[](https://travis-ci.org/picandocodigo/howlong)
![]()
Ruby script to search for a running process and tell you how long it's been running:
```bash
$ howlong emacs
Process /usr/bin/emacs24 has been active for 2 days, 2 hours, 12 minutes and 37 seconds
$ howlong iceweasel
Process iceweasel has been active for 13 hours, 58 minutes and 21 seconds```
With IRB:
```bash
$ rake console
2.1.2 :001 > Howlong.run "emacs"
Process emacs has been active for 33 minutes and 25 seconds
=> nil
2.1.2 :002 >
```