ensembl-hive  2.1
 All Classes Namespaces Files Functions Pages
Bio::EnsEMBL::Hive::Utils::Stopwatch Class Reference

Public Member Functions

public new ()
 
protected _unit ()
 
public is_counting ()
 
public accumulated ()
 
public continue ()
 
public restart ()
 
public get_elapsed ()
 
public pause ()
 

Detailed Description

Synopsis

my $total_stopwatch = Bio::EnsEMBL::Hive::Utils::Stopwatch->new()->restart;
my $fetching_stopwatch = Bio::EnsEMBL::Hive::Utils::Stopwatch->new();
my $running_stopwatch = Bio::EnsEMBL::Hive::Utils::Stopwatch->new();
$fetching_stopwatch->continue();
$runnable->fetch_input();
$fetching_stopwatch->pause();
$running_stopwatch->continue();
$runnable->run();
$running_stopwatch->pause();
# ...
my $only_fetches = $fetching_stopwatch->get_elapsed; # probably stopped
my $total_time_elapsed = $total_stopwatch->get_elapsed; # running through

Description

    This is a standalone object used to time various events in the Hive.

Member Function Documentation

protected Bio::EnsEMBL::Hive::Utils::Stopwatch::_unit ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Hive::Utils::Stopwatch::accumulated ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Hive::Utils::Stopwatch::continue ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Hive::Utils::Stopwatch::get_elapsed ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Hive::Utils::Stopwatch::is_counting ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Hive::Utils::Stopwatch::new ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Hive::Utils::Stopwatch::pause ( )

Undocumented method

Code:
click to view
public Bio::EnsEMBL::Hive::Utils::Stopwatch::restart ( )

Undocumented method

Code:
click to view

The documentation for this class was generated from the following file: