Add timer to router
This commit is contained in:
parent
a54b50dce8
commit
5383f537e2
|
@ -131,7 +131,12 @@ function img_src($src, $root = "" ) {
|
||||||
return $write;
|
return $write;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$tt = microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'];
|
||||||
|
echo <<<END
|
||||||
|
<script>
|
||||||
|
console.log("Generated page in " + $tt.toFixed(5) + " seconds.");
|
||||||
|
</script>
|
||||||
|
END;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue