Created
August 1, 2023 07:45
-
-
Save kitzberger/1cb40373079909b22306e3fe21d9c639 to your computer and use it in GitHub Desktop.
TYPO3 Timetracker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$tt = GeneralUtility::makeInstance(\TYPO3\CMS\Core\TimeTracker\TimeTracker::class); | |
$tt->start(); | |
// Expensive operation here | |
$tt->finish(); | |
// Print the runtime between start and finish in milliseconds. | |
dd($tt->getParseTime()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment