Lab::Moose::Countdown - Verbose countdown/delay with pretty printing of remaining time
version 3.651
use Lab::Moose::Countdown; # Sleep for 23.45678 seconds with pretty countdown countdown(23.45678, "Getting ready, Remaining time is ");
my $delay = 2 # seconds countdown($delay) my $prefix = "Some prefix text"; countdown($delay, $prefix);
Replacement for Time::HiRes::sleep. Pretty print the remaining hours/minutes/seconds. If the argument is smaller than 0.5 seconds, no countdown is printed and the function behaves exactly like Time::HiRes::sleep. Default $prefix is "Sleeping for".
Time::HiRes::sleep
$prefix
"Sleeping for"
This software is copyright (c) 2018 by the Lab::Measurement team; in detail:
Copyright 2018 Simon Reinhardt
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Lab::Measurement, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lab::Measurement
CPAN shell
perl -MCPAN -e shell install Lab::Measurement
For more information on module installation, please visit the detailed CPAN module installation guide.