View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Clinton Wolfe > Class-ReluctantORM-0.52_0 > Class::ReluctantORM::Monitor::Timer

Download:
Class-ReluctantORM-0.52_0.tar.gz

Dependencies

Annotate this POD

Source  

NAME ^

Class::ReluctantORM::Monitor::Timer - Track running time of queries

SYNOPSIS ^

  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();

DESCRIPTION ^

A monitor that watches the amount of wall time used to execute a query.

This is a Measuring Monitor.

syntax highlighting: