How do I show page load time and DB queries?

Requested and Answered by Carnuke on 2004/12/11 19:59:51

How do I show page load time and DB queries?

Place the following code in your current theme.html file in the position you want the data to show.

<{php}>
echo 
round(($GLOBALS['xoopsLogger']->dumpTime()), 3)." Seconds | ".count($GLOBALS['xoopsLogger']->queries)." Queries";
<{/
php}>
Brash has also constructed a smarty plugin that accomplishes a similar output. Page timer & MySql counter

This Q&A was found on XOOPS Web Application System : https://xoops.org/modules/smartfaq/faq.php?faqid=303