App-Stopwatch
view release on metacpan or search on metacpan
Revision history for App::Stopwatch
1.0.0 2014-07-16
[Major]
* First public release
1.1.0 2014-07-24
[Minor]
* Script can be used as a timer with new `--run` option
* Added `--help` option
1.2.0 2014-09-09
[Minor]
* Added link to App::stopw in POD
[Patch]
* Fixing url markup in POD
bin/stopwatch view on Meta::CPAN
Most simple usage is just to run `stopwatch` without any options. The script
will start counting seconds and it will output the passed time:
04:12:54
To stop script use ctrl+c
=head2 Timer feature
You can use this script as a timer. The script can execute command at desired
time. Here is an example:
stopwatch --run 10m "terminal-notifier -message '10 min passed'"
This command will start counting seconds but when in 10 minutes after start
it will execute the command.
The `--run` options must get 2 parameters. First one is the time ('10m', '5s')
and the second one is the command that should be run at that time. You can
specify several `--run` options at once.
( run in 0.556 second using v1.01-cache-2.11-cpan-49f99fa48dc )