NAME

Text::ProgressBar:::Timer - displays elapsed time

VERSION

version 0.2

SYNOPSIS

use Text::ProgressBar::Timer;

my $bar = Text::ProgressBar->new(widgets => [Text::ProgressBar::Timer->new()]);
$bar->start();
for my $i (1..150) {
    sleep 0.1;
    $bar->update($i+1);
}
$bar->finish;

DESCRIPTION

Widget which displays the elapsed seconds. It is super class of 'ETA' and 'FormatLabel'. An example of default settings:

Elapsed Time: 0:0:8                                                                                                    

ATTRIBUTES

format_string

defines the output string

METHODS

update

handler for redrawing current regions within the area. (Inherited from Widget.)

BUILD

add additional works after object creation

format_time

format time properly HH:MM:SS

AUTHOR

Farhad Fouladi, <farhad at cpan.org>

LICENSE AND COPYRIGHT

Copyright 2012 Farhad Fouladi.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.