Add elapsedTime in connect.php

Ensure that connect.php always has function elapsedTime available.
This commit is contained in:
Martin Nylind 2015-10-23 10:56:14 +02:00
parent fff61ef79d
commit ab117b203b

View File

@ -1,6 +1,18 @@
<?php
$time = time();
if (!isset($version)) $version = '1.5_SVN';
if (!function_exists("elapsedTime")) {
function elapsedTime($l_start = false, $l_time = false) {
if ($l_start === false) global $l_start;
if ($l_time === false) global $l_time;
$l_time = explode(' ', microtime());
$l_finish = $l_time[1] + $l_time[0];
return round(($l_finish - $l_start), 4);
}
}
$install = "
<h2>Install:</h2>
<ol>