cvs: phpdoc /en/pear benchmark_timer.xml

From: Date: Mon, 12 Nov 2001 01:45:24 +0000
Subject: cvs: phpdoc /en/pear benchmark_timer.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969338739@lists.php.net to get a copy of this message
hholzgra Sun Nov 11 20:45:24 2001 EDT Modified files: /phpdoc/en/pear benchmark_timer.xml Log: entities fixed Index: phpdoc/en/pear/benchmark_timer.xml diff -u phpdoc/en/pear/benchmark_timer.xml:1.6 phpdoc/en/pear/benchmark_timer.xml:1.7 --- phpdoc/en/pear/benchmark_timer.xml:1.6 Sat Nov 10 16:49:43 2001 +++ phpdoc/en/pear/benchmark_timer.xml Sun Nov 11 20:45:24 2001 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <refentry id="class.benchmark-timer"> <refnamediv> <refname>Benchmark_Timer</refname> @@ -20,9 +20,9 @@ require_once 'Benchmark/Timer.php'; $timer = new Benchmark_Timer; -$timer->setMarker('start of for() loop'); -for ($i = 0; $i < 1000; $i++) { /* ... */ } -$timer->setMarker('end of for() loop'); +$timer-&gt;setMarker('start of for() loop'); +for ($i = 0; $i &lt; 1000; $i++) { /* ... */ } +$timer-&gt;setMarker('end of for() loop'); echo 'The for() loop took ' . $timer->timeElapsed('start of for() loop', 'end of for() loop');

« previous php.doc (#969338739) next »