[TYPO3-dev] timer for debugging
Ernesto Baschny [cron IT]
ernst at cron-it.de
Tue Mar 9 12:55:30 CET 2010
Sigfried Arnold schrieb am 08.03.2010 22:11:
>> Sigfried Arnold schrieb am 08.03.2010 15:58:
>> If you read the code, there is no dependency on "TS" if you don't need
>> it:
>>
>> 1) start() remembers the start time
> well,
>
> calling t3lib_timetrack::start() does not work.
>
> seems it won't work since the references are hardcoded to $this-> not to
> t3lib_timetrack:: or self::
>
> Fatal error: Call to undefined method tx_example_pi1::mtime() in
> /var/www/typo3_src/typo3_src-4.2.12/t3lib/class.t3lib_timetrack.php on
> line 153
>
> neither if i instantiate it first manualy
>
> suggestions? ;)
Create an instance of it for your own use. Or use the $GLOBALS['TT']
instance if you want to track time in FE-plugins using the admin panel.
Cheers,
Ernesto
More information about the TYPO3-dev
mailing list