NAME
SHARYANTO::Timer::Simple - Simple timer
VERSION
This document describes version 0.74 of SHARYANTO::Timer::Simple (from Perl distribution SHARYANTO-Utils), released on 2014-05-21.
SYNOPSIS
use SHARYANTO::Timer::Simple; # exports timer() and $TIMER
$TIMER = 0; do_something(); say $TIMER;
timer { do_something_else() };
DESCRIPTION
This module exports timer
and $TIMER
. The former can be used to measure the running time of a block of code, and the later is a shortcut/default for Time::Stopwatch.
EXPORTS
$TIMER
FUNCTIONS
timer CODE
Execute CODE and print the number of seconds passed.
SEE ALSO
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/SHARYANTO-Utils.
SOURCE
Source repository is at https://github.com/sharyanto/perl-SHARYANTO-Utils.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=SHARYANTO-Utils
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.