Modules

  • ABCDE
  • FGHIL
  • MNOPS
  • TUX

Tools

TAP::Base

Perl 5 version 22.0 documentation
Recently read

TAP::Base

NAME

TAP::Base - Base class that provides common functionality to TAP::Parser and TAP::Harness

VERSION

Version 3.35

SYNOPSIS

  1. package TAP::Whatever;
  2. use base 'TAP::Base';
  3. # ... later ...
  4. my $thing = TAP::Whatever->new();
  5. $thing->callback( event => sub {
  6. # do something interesting
  7. } );

DESCRIPTION

TAP::Base provides callback management.

METHODS

Class Methods

callback

Install a callback for a named event.

get_time

Return the current time using Time::HiRes if available.

time_is_hires

Return true if the time returned by get_time is high resolution (i.e. if Time::HiRes is available).

get_times

Return array reference of the four-element list of CPU seconds, as with times.