Modules

  • ABCDE
  • FGHIL
  • MNOPS
  • TUX

Tools

TAP::Base

Perl 5 version 12.2 documentation
Recently read

TAP::Base

NAME

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

VERSION

Version 3.17

SYNOPSIS

  1. package TAP::Whatever;
  2. use TAP::Base;
  3. use vars qw($VERSION @ISA);
  4. @ISA = qw(TAP::Base);
  5. # ... later ...
  6. my $thing = TAP::Whatever->new();
  7. $thing->callback( event => sub {
  8. # do something interesting
  9. } );

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