I was wondering if there is a easy way to print the servers current date & time in real time for inclusion in a titlebar?
<{$xoops_footer}>
<{$xoops_footer}><{php}>global $ftime;
echo"This page is loaded in $ftime seconds.";
<{/php}><p>
This page loaded in <? php global $ftime; echo $ftime; ?> seconds
$xoopsLogger->startTime();
/**
* get the current execution time of a timer
*
* @param string $name name of the counter
* @return float current execution time of the counter
*/
function dumpTime($name = 'XOOPS')
{
if (!isset($this->logstart[$name])) {
return 0;
}
if (!isset($this->logend[$name])) {
$stop_time = explode(' ', microtime());
} else {
$stop_time = $this->logend[$name];
}
return ((float)$stop_time[1] + (float)$stop_time[0]) - ((float)$this->logstart[$name][1] + (float)$this->logstart[$name][0]);
}