Devel::Events::Filter::Stamp - Add time/context stamping to events
use Devel::Events::Filter::Stamp; my $filter = Devel::Events::Filter::Stamp->new( handler => $handler, ); Generator::Blah->new( handler => $filter );
This event filter will add timing and context information to the event.
The parameters are prepended so that upon hash assignment the event generator will get precedence.
Prepends the output of stamp_data to @event
stamp_data
@event
Returns the new fields, as detailed in "STAMP DATA"
A fractional timestamp, from Time::HiRes.
Suitable for passing to DateTime unaltered. Other modules may require application of int.
int
The value of $$
$$
Only included if threads are in use.
The current thread ID.
To install Devel::Events, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Events
CPAN shell
perl -MCPAN -e shell install Devel::Events
For more information on module installation, please visit the detailed CPAN module installation guide.