The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Weather::GHCN::TimingStats - collect timing statistics for GHCN modules and scripts

VERSION

version v0.0.011

SYNOPSIS

  use Weather::GHCN::TimingStats qw(:all);

DESCRIPTION

The Weather::GHCN::TimingStats module provides a class and methods that are used to collect timing statistics from within GHCN modules or from application scripts that use GHCN modules.

The module is primarily for use by module Weather::GHCN::StationTable.

METHODS

new ()

Create a new TimingStats object.

start($timer)

Start a timer labelled $timer. Timer labels prefixed with underscore (_) are considered to be internal and not included in the overall duration.

stop ($timer, $note='')

Stop the timer labelled $timer, with an optional note.

get_timers ()

Get a sorted list of all the timer labels that have been created so far by invoking the start() method.

get_duration($timer)

Get the time that has elapsed for the timer labelled $timer.

get_note ($timer)

Get the note associated with the timer labelled $timer.

finish ()

Finish this set of timers and calculate the overall duration, excluding the duration of any internal timers (those with labels that are prefixed with '_'). The overall duration is associated with label '_Overall'.

DOES

Defined by Object::Pad. Included for POD::Coverage.

META

Defined by Object::Pad. Included for POD::Coverage.