ensembl-hive  2.6
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.

Definition at line 33 of file Stopwatch.pm.

Member Function Documentation

◆ _unit()

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

Undocumented method

Code:
click to view

◆ accumulated()

public Bio::EnsEMBL::Hive::Utils::Stopwatch::accumulated ( )

Undocumented method

Code:
click to view

◆ continue()

public Bio::EnsEMBL::Hive::Utils::Stopwatch::continue ( )

Undocumented method

Code:
click to view

◆ get_elapsed()

public Bio::EnsEMBL::Hive::Utils::Stopwatch::get_elapsed ( )

Undocumented method

Code:
click to view

◆ is_counting()

public Bio::EnsEMBL::Hive::Utils::Stopwatch::is_counting ( )

Undocumented method

Code:
click to view

◆ new()

public Bio::EnsEMBL::Hive::Utils::Stopwatch::new ( )

Undocumented method

Code:
click to view

◆ pause()

public Bio::EnsEMBL::Hive::Utils::Stopwatch::pause ( )

Undocumented method

Code:
click to view

◆ restart()

public Bio::EnsEMBL::Hive::Utils::Stopwatch::restart ( )

Undocumented method

Code:
click to view

The documentation for this class was generated from the following file:
Bio::EnsEMBL::Hive::Utils::Stopwatch::is_counting
public is_counting()
Bio::EnsEMBL::Hive::Utils::Stopwatch::restart
public restart()
Bio::EnsEMBL::Hive::Utils::Stopwatch
Definition: Stopwatch.pm:33
Bio::EnsEMBL::Hive::Utils::Stopwatch::get_elapsed
public get_elapsed()
Bio::EnsEMBL::Hive::Utils::Stopwatch::pause
public pause()
Bio::EnsEMBL::Hive::Utils::Stopwatch::new
public new()
Bio::EnsEMBL::Hive::Utils::Stopwatch::_unit
protected _unit()
Bio::EnsEMBL::Hive::Utils::Stopwatch::accumulated
public accumulated()