{
    "mode": "perldoc",
    "parameter": "TAP::Base",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/TAP%3A%3ABase/json",
    "generated": "2026-06-13T16:11:59Z",
    "synopsis": "package TAP::Whatever;\nuse base 'TAP::Base';\n# ... later ...\nmy $thing = TAP::Whatever->new();\n$thing->callback( event => sub {\n# do something interesting\n} );",
    "sections": {
        "NAME": {
            "content": "TAP::Base - Base class that provides common functionality to TAP::Parser and TAP::Harness\n",
            "subsections": []
        },
        "VERSION": {
            "content": "Version 3.43\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "package TAP::Whatever;\n\nuse base 'TAP::Base';\n\n# ... later ...\n\nmy $thing = TAP::Whatever->new();\n\n$thing->callback( event => sub {\n# do something interesting\n} );\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"TAP::Base\" provides callback management.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "",
            "subsections": [
                {
                    "name": "Class Methods",
                    "content": "\"callback\"\nInstall a callback for a named event.\n\n\"gettime\"\nReturn the current time using Time::HiRes if available.\n\n\"timeishires\"\nReturn true if the time returned by gettime is high resolution (i.e. if Time::HiRes is\navailable).\n\n\"gettimes\"\nReturn array reference of the four-element list of CPU seconds, as with \"times\" in perlfunc.\n"
                }
            ]
        }
    },
    "summary": "TAP::Base - Base class that provides common functionality to TAP::Parser and TAP::Harness",
    "flags": [],
    "examples": [],
    "see_also": []
}