fixing some database issues
This commit is contained in:
parent
6ee911aee4
commit
36218b9594
3 changed files with 28 additions and 22 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
$StartTime=time()+microtime();
|
||||
$StartTime = microtime(true);
|
||||
|
||||
//set ToDo var
|
||||
if (isset($_GET['ToDo']))
|
||||
|
|
@ -97,14 +97,14 @@ MysqlCloseDb();
|
|||
|
||||
if ($GlobalDebungMode)
|
||||
{
|
||||
$StopTime=time()+microtime();
|
||||
$StopTime = microtime(true);
|
||||
$TimeSpan=ceil(($StopTime-$StartTime)*1000);
|
||||
if ($TimeSpan<0)
|
||||
{
|
||||
ErrorLog("Execution time negative, start: '$StartTime' stop: '$StopTime' timespan: '$TimeSpan'!");
|
||||
echo "Start time: <strong>$StartTime s</strong><br>\n";
|
||||
echo "Stop time: <strong>$StopTime s</strong><br>\n";
|
||||
}
|
||||
}
|
||||
echo "Script execution time: <strong>$TimeSpan ms</strong><br>\n";
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue