processing time
Hallo!
How can I caculate the whole processing time of a page on the server?
I tried to put a timestamp in tiki-setup.php

Copy to clipboard
<?php global $myct; $myct=microtime(); ?>
an one in footer.tpl

Copy to clipboard
<?php global $myct; function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } list($myusec, $mysec) = explode(" ", $myct); $time_start = ((float)$myusec + (float)$mysec); $time_end = microtime_float(); $mytime = $time_end - $time_start; $mytime = round($mytime,2); echo "<p class=\"editdate\">Processing time: $mytime sec</p>"; ?>
I get almost the same time (2.31-2.93sec).
But is this realy the start of processing und the end?
Where should I put my timestamps to?
Thanks
Hausi