Perl version

Modules

  • ABCDE
  • FGHIL
  • MNOPS
  • TUX

TAP::Base

Perl 5 version 20.1 documentation
Recently read

TAP::Base

NAME

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

VERSION

Version 3.30

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).