Bitrix Site Manager

getmicrotime

float 
getmicrotime()

The getmicrotime function returns the current time in Unix format.

Parameters

No parameters.

Example



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

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

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