remove time_used function

Let us use a proper profiler or #187 instead
This commit is contained in:
onli 2015-07-26 18:03:19 +02:00
parent 6fd7dcc3b5
commit 3f645612e0

View File

@ -3,16 +3,6 @@
# All rights reserved. See LICENSE file for licensing details
#apd_set_pprof_trace();
function microtime_float() {
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$time_start = microtime_float();
// We need to set this to return a 200 since we use .htaccess ErrorDocument
// rules to handle archives.
header('HTTP/1.0 200');
@ -146,6 +136,4 @@ if (!defined('NO_EXIT')) {
$serendipity['smarty']->display(serendipity_getTemplateFile($serendipity['smarty_file'], 'serendipityPath'));
}
if (is_object($serendipity['logger'])) $serendipity['logger']->debug('Page delivered in '. round(microtime_float()-$time_start,6) .' seconds, '. sizeof(get_included_files()) .' files included');
/* vim: set sts=4 ts=4 expandtab : */