NAME
Time::StopWatchWithMessage - Calculate a interval between Previous and Current with a message.
SYNOPSIS
use Time::StopWatchWithMessage;
my $watch = Time::StopWatchWithMessage->new;
$watch->start( "Initialize." );
do_initialize( );
$watch->stop;
$watch->start( "Doing something." );
do_something( );
$watch->stop->start( "Finalize." );
do_finalize( );
$watch->stop;
$watch->warn;
DESCRIPTION
You can use Time::StopWatch. This module likes it. This is used to record a message.
Note, this module hasn't care overhead of self executing.
EXPORT
None.
METHODS
- start
-
Starts watching time.
- stop
-
Stops watching time.
- warn
-
Prints the result to STDERR.
-
Prints the result to STDOUT.
- output
-
Prints the result to file handle.
SEE ALSO
AUTHOR
Kuniyoshi.Kouji, <kuniyoshi@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2010 by Kuniyoshi.Kouji
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.