From 3f645612e0c504235601bedf97f20c12ea42862f Mon Sep 17 00:00:00 2001 From: onli Date: Sun, 26 Jul 2015 18:03:19 +0200 Subject: [PATCH] remove time_used function Let us use a proper profiler or #187 instead --- index.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/index.php b/index.php index ac3a48ab..862ae7c0 100644 --- a/index.php +++ b/index.php @@ -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 : */