Documentation

getmicrotime

float 
getmicrotime()

The function returns the current time in Unix format.

Function parameters

No parameters.

Examples of use

<?
// Time benchmarking algorithm
$ptime = getmicrotime();

for ($i=0; $i<10000; $i++);

echo "Loop has taken ".round(getmicrotime()-$ptime, 3)."sec";
?>


© «Bitrix24», 2001-2024
Up