mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-11-29 08:56:51 +01:00
Added correct page render time in the default layout.
Added a function elapsedTime() that can be called anywhere to see how long the page has taken to render thus far. query debugging shows current render time to help detect performance issues.
This commit is contained in:
@@ -5,6 +5,15 @@ $l_time = explode(' ', $l_time);
|
||||
$l_time = $l_time[1] + $l_time[0];
|
||||
$l_start = $l_time;
|
||||
|
||||
function elapsedTime($l_start = false, $l_time = false) {
|
||||
if ($l_start === false) global $l_start;
|
||||
if ($l_time === false) global $l_time;
|
||||
|
||||
$l_time = explode(' ', microtime());
|
||||
$l_finish = $l_time[1] + $l_time[0];
|
||||
return round(($l_finish - $l_start), 4);
|
||||
}
|
||||
|
||||
$time = time();
|
||||
$version = '1.5_SVN';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user