Skip to content

Instantly share code, notes, and snippets.

@kitzberger
Created August 1, 2023 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kitzberger/1cb40373079909b22306e3fe21d9c639 to your computer and use it in GitHub Desktop.
Save kitzberger/1cb40373079909b22306e3fe21d9c639 to your computer and use it in GitHub Desktop.
TYPO3 Timetracker
<?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