diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-30 08:39:11 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-30 08:39:11 +1000 |
| commit | 343803afb9de3b27ba44d9594b6770f9c84d2e54 (patch) | |
| tree | 95e429f5ab6875f5ce41e54702ff94aa357d5d9b /mod.php | |
| parent | 8921eb9c1a43e13e096fe72850d75dcf2974483f (diff) | |
More $config['debug'] improvements to time-related stuff
Diffstat (limited to 'mod.php')
| -rw-r--r-- | mod.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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)) { |
