mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-23 02:06:16 +00:00
Time to generate Page
This commit is contained in:
parent
646b41e90a
commit
e7a2284809
9 changed files with 61 additions and 19 deletions
|
@ -1,7 +1,37 @@
|
|||
<?php
|
||||
if (isset($sql_start) && isset($sql_end)) {
|
||||
$sql_time = $sql_end - $sql_start;
|
||||
$sql_time = round($sql_time, 6) * 1000;
|
||||
|
||||
if ($sql_time > 0) {
|
||||
$sql_time = "(SQL ".$sql_time."ms)";
|
||||
} else {
|
||||
$sql_time = "(SQL <0ms)";
|
||||
}
|
||||
} else {
|
||||
$sql_time = "";
|
||||
}
|
||||
|
||||
if (isset($exec_start)) {
|
||||
$exec_end = microtime(true);
|
||||
|
||||
$exec_time = ($exec_end - $exec_start);
|
||||
$exec_time = round($exec_time, 6) * 1000;
|
||||
} else {
|
||||
$exec_time = 0;
|
||||
}
|
||||
?>
|
||||
|
||||
<footer>
|
||||
<p>Hosted by <?php echo $user_settings['user_name']; ?></p>
|
||||
<hr>
|
||||
<a class='link' href="https://github.com/Fluffy-Bean/image-gallery">Made by Fluffy</a>
|
||||
<hr>
|
||||
<p>Version <?php echo $user_settings['version']; ?></p>
|
||||
<p>Copyright <?php echo $user_settings['user_name']; ?></p>
|
||||
<hr>
|
||||
<a class='link' href="https://github.com/Fluffy-Bean/image-gallery">Made by Fluffy</a>
|
||||
<hr>
|
||||
<p>V<?php echo $user_settings['version']; ?></p>
|
||||
<?php
|
||||
if ($exec_time != 0) {
|
||||
echo "<hr>
|
||||
<p>Generated in ".$exec_time."ms ".$sql_time."</p>";
|
||||
}
|
||||
?>
|
||||
</footer>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue