Nile::Timer - Timer to clock operations.
# start the timer $app->timer->start; # do some operations... # get time elapsed since start called say $app->timer->lap; # do some other operations... # get time elapsed since last lap called say $app->timer->lap; # get another timer object, timer automatically starts my $timer = $app->timer->new; say $timer->lap; #... say $timer->lap; #... say $timer->total; # get total time elapsed since start say $app->timer->total;
# start the timer from now $app->timer->start;
Starts the timer. Timer starts by default when the application is started.
say $app->timer->lap;
Returns the time period since the last lap or from the start if not called before.
# get total time since start called say $app->timer->total;
Returns the total time since the last start.
say $app->timer->start_time;
Returns the last start time.
say $app->timer->lap_start_time;
Returns the last lap start time.
say $app->timer->time;
Returns the current time.
This project is available on github at https://github.com/mewsoft/Nile.
Please visit the project's homepage at https://metacpan.org/release/Nile.
Source repository is at https://github.com/mewsoft/Nile.
See Nile for details about the complete framework.
Ahmed Amin Elsheshtawy, احمد امين الششتاوى <mewsoft@cpan.org> Website: http://www.mewsoft.com
Copyright (C) 2014-2015 by Dr. Ahmed Amin Elsheshtawy احمد امين الششتاوى mewsoft@cpan.org, support@mewsoft.com, https://github.com/mewsoft/Nile, http://www.mewsoft.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Nile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nile
CPAN shell
perl -MCPAN -e shell install Nile
For more information on module installation, please visit the detailed CPAN module installation guide.