array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'hrtime-stopwatch.getelapsedtime.php', 1 => 'HRTime\\StopWatch::getElapsedTime', ), 'up' => array ( 0 => 'class.hrtime-stopwatch.php', 1 => 'HRTime\\StopWatch', ), 'prev' => array ( 0 => 'hrtime-stopwatch.getelapsedticks.php', 1 => 'HRTime\\StopWatch::getElapsedTicks', ), 'next' => array ( 0 => 'hrtime-stopwatch.getlastelapsedticks.php', 1 => 'HRTime\\StopWatch::getLastElapsedTicks', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'es', 'path' => 'reference/hrtime/hrtime-stopwatch/getelapsedtime.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL hrtime >= 0.4.3)
HRTime\StopWatch::getElapsedTime — Obtener el tiempo transcurrido para todos los intervalos
Obtener el tiempo transcurrido para todos los intervalos anteriormente cerrados.
unit
La unidad de tiempo representada por una constante HRTime\Unit. La predeterminada es HRTime\Unit::SECOND.
Devuelve un valor de tipo float indicando el tiempo transcurrido.