Class::ReluctantORM::Monitor::Timer - Track running time of queries
use aliased 'Class::ReluctantORM::Monitor::Timer'; my $mon = Timer->new(highwater_count => N, fatal_threshold => X); Class::ReluctantORM->install_global_monitor($mon); Pirate->install_class_monitor($mon); # Do a query.... Pirate->fetch(...); # Read from the monitor - decimal seconds my $count = $mon->last_measured_value();
A monitor that watches the amount of wall time used to execute a query.
This is a Measuring Monitor.
To install Class::ReluctantORM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::ReluctantORM
CPAN shell
perl -MCPAN -e shell install Class::ReluctantORM
For more information on module installation, please visit the detailed CPAN module installation guide.