{% else-1 %}
Таймер выполнения скрипта
Вызывается в начале скрипта: $timer = new Timer;
Вызывается в конце скрипта: echo $timer->timer();

                        
<?php
class Timer
{
private $time = FALSE;

function timer()
{
if($this->time === FALSE)
{
$this->time = microtime(true);
}
else
{
$newTime = microtime(true);
return $newTime - $this->time;
}
}
}
?>
0 24 0
Без комментариев...