NAME

Text::ProgressBar::FileTransferSpeed - showing the transfer speed as a simple string

VERSION

version 0.2

SYNOPSIS

use Text::ProgressBar::FileTransferSpeed;

my $bar = Text::ProgressBar->new(maxval=>10000000, widgets => [Text::ProgressBar::FileTransferSpeed->new()]);
$bar->start();
for my $i (1..10000) {
    $bar->update($i+1);
}
$bar->finish;

DESCRIPTION

Widget for showing the transfer speed (useful for file transfers). Example of default output:

5.00 MB/s 

ATTRIBUTES

unit

transfer speed unit is given, default 'B' - for Baud

METHODS

update

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

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.