fixing some database issues

This commit is contained in:
Development 2020-09-25 14:22:51 +02:00
commit 36218b9594
3 changed files with 28 additions and 22 deletions

View file

@ -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";
}
?>