summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-09-01 11:25:19 -0400
committerczaks <marcin@6irc.net>2013-09-01 11:25:19 -0400
commit069f1def9bf8c8d769afdc5740e9ff13271065bd (patch)
treed60db9e7126ecb0e046b34c3faa3b49ca7bfd32e /mod.php
parentc2400568656e6bb8e629704d312322937d24fb2d (diff)
parent22fcca343f8d4e820745a673972286b47a6a17ba (diff)
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts: install.php
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 dca13dfe..ab5de9e7 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) {
@@ -159,8 +162,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)) {