TAP::Base - 提供 TAP::Parser 和 TAP::Harness 常見功能的基本類別
版本 3.44
package TAP::Whatever;
use base 'TAP::Base';
# ... later ...
my $thing = TAP::Whatever->new();
$thing->callback( event => sub {
# do something interesting
} );
TAP::Base
提供 callback 管理。
callback
安裝命名事件的 callback。
get_time
如果可用,使用 Time::HiRes 回傳目前時間。
time_is_hires
如果 get_time 回傳的時間是高解析度(即如果 Time::HiRes 可用),則回傳 true。
get_times
回傳 CPU 秒數四元素清單的陣列參考,如同 "times" in perlfunc。