1TAP::Base(3)          User Contributed Perl Documentation         TAP::Base(3)
2
3
4

NAME

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

VERSION

10       Version 3.48
11

SYNOPSIS

13           package TAP::Whatever;
14
15           use base 'TAP::Base';
16
17           # ... later ...
18
19           my $thing = TAP::Whatever->new();
20
21           $thing->callback( event => sub {
22               # do something interesting
23           } );
24

DESCRIPTION

26       "TAP::Base" provides callback management.
27

METHODS

29   Class Methods
30       "callback"
31
32       Install a callback for a named event.
33
34       "get_time"
35
36       Return the current time using Time::HiRes if available.
37
38       "time_is_hires"
39
40       Return true if the time returned by get_time is high resolution (i.e.
41       if Time::HiRes is available).
42
43       "get_times"
44
45       Return array reference of the four-element list of CPU seconds, as with
46       "times" in perlfunc.
47
48
49
50perl v5.38.0                      2023-10-03                      TAP::Base(3)
Impressum