summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index 1e4433283..d86ebe81f 100644
--- a/index.php
+++ b/index.php
@@ -2,6 +2,8 @@
include_once "includes/common.inc";
+if (variable_get(dev_timing, 0)) timer_start();
+
// Initialize/pre-process variables:
$number = ($user->nodes) ? $user->nodes : 10;
$date = ($date > 0) ? $date : time();
@@ -14,4 +16,6 @@ $theme->header();
while ($story = db_fetch_object($result)) $theme->story($story);
$theme->footer();
+if (variable_get(dev_timing, 0)) timer_print();
+
?>