summaryrefslogtreecommitdiff
path: root/includes/components/footer.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/components/footer.inc')
-rw-r--r--includes/components/footer.inc13
1 files changed, 9 insertions, 4 deletions
diff --git a/includes/components/footer.inc b/includes/components/footer.inc
index d75b480..059d956 100644
--- a/includes/components/footer.inc
+++ b/includes/components/footer.inc
@@ -1,7 +1,8 @@
<?php
-
+global $start;
+$GLOBALS["ColdHazePerformance"]["page"] = (microtime(true) - $start) * 1000;
+$start = microtime(true);
global $pageFile;
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
?>
@@ -16,8 +17,10 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
global $lang; global $pages;
+ $time = microtime(true) - $GLOBALS["ColdHazeStart"];
+
?>
- © <?= date("Y") ?> <a href="https://equestria.horse" target="_blank" class="text-muted"><?= $lang["footer"]["copyright"] ?></a> · build <?= $version["build"] ?>.<?= $version["revision"] ?>
+ © <?= date("Y") ?> <a href="https://equestria.horse" target="_blank" class="text-muted"><?= $lang["footer"]["copyright"] ?></a> · build <?= $version["build"] ?>.<?= $version["revision"] ?>, took <?= round($time * 1000, 2) ?> ms
<br><br><br><br><br>
</div>
</div>
@@ -35,7 +38,9 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
})
</script>
-<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/components/search.inc"; ?>
+<?php if (isset($_GET["performance"])): ?>
+<pre><?php $GLOBALS["ColdHazePerformance"]["footer"] = (microtime(true) - $start) * 1000; var_dump($GLOBALS["ColdHazePerformance"]); ?></pre>
+<?php endif; ?>
</body>
</html> \ No newline at end of file