microtime as float (#502)

This commit is contained in:
Michał "Gubihe
2022-01-21 10:28:07 +01:00
committed by GitHub
parent 4fb06fb4e5
commit 6d402cef28
3 changed files with 5 additions and 10 deletions

View File

@@ -1,11 +1,9 @@
<footer>
&copy; Znote AAC.
<?php
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$finish = microtime(true);
$finish = $time;
$total_time = round(($finish - $start), 4);
echo 'Server date and clock is: '. getClock(false, true) .' Page generated in '. $total_time .' seconds. ';
?>
</footer>
</footer>