mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-05-09 15:49:21 +02:00
Add elapsedTime in connect.php
Ensure that connect.php always has function elapsedTime available.
This commit is contained in:
parent
fff61ef79d
commit
ab117b203b
@ -1,6 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
$time = time();
|
$time = time();
|
||||||
if (!isset($version)) $version = '1.5_SVN';
|
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 = "
|
$install = "
|
||||||
<h2>Install:</h2>
|
<h2>Install:</h2>
|
||||||
<ol>
|
<ol>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user