track PHP execution time

lektura
max.mehl 2017-03-28 01:11:24 +02:00
parent bb38c8c5cd
commit f09e50ba27
1 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,5 @@
<?php <?php
$timer_start = microtime(true); // Start counter for PHP execution time tracking
$codemod = 2138367; // modificator with which the confirmation ID will be obfuscated $codemod = 2138367; // modificator with which the confirmation ID will be obfuscated
$output = ""; $output = "";
@ -249,6 +250,11 @@ function show_page($output, $exit) {
$page = replace_page($page, ':BODY2:', $notice); $page = replace_page($page, ':BODY2:', $notice);
echo $page; echo $page;
unset($data); unset($data);
// PHP execution time tracking
global $timer_start;
echo "<!-- PHP execution time: " . (microtime(true) - $timer_start)*1000 . " ms -->";
exit($exit); exit($exit);
} }
?> ?>