TAP::Base(3p) Perl Programmers Reference Guide TAP::Base(3p) #
TAP::Base(3p) Perl Programmers Reference Guide TAP::Base(3p)
NNAAMMEE #
TAP::Base - Base class that provides common functionality to TAP::Parser
and TAP::Harness
VVEERRSSIIOONN #
Version 3.44
SSYYNNOOPPSSIISS #
package TAP::Whatever;
use base 'TAP::Base';
# ... later ...
my $thing = TAP::Whatever->new();
$thing->callback( event => sub {
# do something interesting
} );
DDEESSCCRRIIPPTTIIOONN #
"TAP::Base" provides callback management.
MMEETTHHOODDSS #
CCllaassss MMeetthhooddss _"_c_a_l_l_b_a_c_k_"
Install a callback for a named event.
_"_g_e_t___t_i_m_e_"
Return the current time using Time::HiRes if available.
_"_t_i_m_e___i_s___h_i_r_e_s_"
Return true if the time returned by get_time is high resolution (i.e. if
Time::HiRes is available).
_"_g_e_t___t_i_m_e_s_"
Return array reference of the four-element list of CPU seconds, as with
"times" in perlfunc.
perl v5.36.3 2023-02-15 TAP::Base(3p)