summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-30 08:39:11 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-30 08:39:11 +1000
commit343803afb9de3b27ba44d9594b6770f9c84d2e54 (patch)
tree95e429f5ab6875f5ce41e54702ff94aa357d5d9b /mod.php
parent8921eb9c1a43e13e096fe72850d75dcf2974483f (diff)
More $config['debug'] improvements to time-related stuff
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index 0e98c4eb..6ef4644d 100644
--- a/mod.php
+++ b/mod.php
@@ -8,6 +8,9 @@ require 'inc/functions.php';
require 'inc/mod/pages.php';
require 'inc/mod/auth.php';
+if ($config['debug'])
+ $parse_start_time = microtime(true);
+
// Fix for magic quotes
if (get_magic_quotes_gpc()) {
function strip_array($var) {
@@ -156,8 +159,9 @@ foreach ($pages as $uri => $handler) {
$debug['mod_page'] = array(
'req' => $query,
'match' => $uri,
- 'handler' => $handler
+ 'handler' => $handler,
);
+ $debug['time']['parse_mod_req'] = '~' . round((microtime(true) - $parse_start_time) * 1000, 2) . 'ms';
}
if (is_string($handler)) {