diff --git a/reference/hrtime/examples.xml b/reference/hrtime/examples.xml index 8674cd5a32..f2a7453645 100644 --- a/reference/hrtime/examples.xml +++ b/reference/hrtime/examples.xml @@ -1,62 +1,62 @@ - - - - &reftitle.examples; -
- Basic usage - - The example illustrates the basic StopWatch class usage - - - Measure several code blocks execution and get the total - -start(); -/* measure this code block execution */ -for ($i = 0; $i < 1024*1024; $i++); -$c->stop(); -$elapsed0 = $c->getLastElapsedTime(HRTime\Unit::NANOSECOND); - -/* measurement is not running here*/ -for ($i = 0; $i < 1024*1024; $i++); - -$c->start(); -/* measure this code block execution */ -for ($i = 0; $i < 1024*1024; $i++); -$c->stop(); -$elapsed1 = $c->getLastElapsedTime(HRTime\Unit::NANOSECOND); - -$elapsed_total = $c->getElapsedTime(HRTime\Unit::NANOSECOND); - -?> -]]> - - -
-
- - - + + + + &reftitle.examples; +
+ Basic usage + + The example illustrates the basic StopWatch class usage + + + Measure several code blocks execution and get the total + +start(); +/* measure this code block execution */ +for ($i = 0; $i < 1024*1024; $i++); +$c->stop(); +$elapsed0 = $c->getLastElapsedTime(HRTime\Unit::NANOSECOND); + +/* measurement is not running here*/ +for ($i = 0; $i < 1024*1024; $i++); + +$c->start(); +/* measure this code block execution */ +for ($i = 0; $i < 1024*1024; $i++); +$c->stop(); +$elapsed1 = $c->getLastElapsedTime(HRTime\Unit::NANOSECOND); + +$elapsed_total = $c->getElapsedTime(HRTime\Unit::NANOSECOND); + +?> +]]> + + +
+
+ + +