Add timer to router

This commit is contained in:
John Alanbrook 2022-11-03 19:34:50 +00:00
parent a54b50dce8
commit 5383f537e2

View file

@ -131,7 +131,12 @@ function img_src($src, $root = "" ) {
return $write;
}
$tt = microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'];
echo <<<END
<script>
console.log("Generated page in " + $tt.toFixed(5) + " seconds.");
</script>
END;
?>