<?xml version="1.0"?><phpdoc><class name="Benchmark_Timer" extends="" undoc="false" access="public"><file>c:/www/apache/doc2//pear/Benchmark/Timer.php</file><doc><author email="sb@phpOpenTracker.de">Sebastian Bergmann</author><description>Purpose:Timing Script Execution, Generating Profiling InformationExample:$timer = new Benchmark_Timer;$timer-&amp;gt;start();$timer-&amp;gt;set_marker( &amp;quot;Marker 1&amp;quot; );$timer-&amp;gt;stop();$profiling = $timer-&amp;gt;get_profiling();</description><shortdescription>Benchmark::Timer</shortdescription><version>$Revision: 1.3 $</version></doc><function name="start" undoc="false" access="public"><doc><see type="function">set_marker()</see><see type="function">stop()</see><return type="void"/><description/><shortdescription>Set &amp;quot;Start&amp;quot; marker.</shortdescription></doc></function><function name="stop" undoc="false" access="public"><doc><see type="function">set_marker()</see><see type="function">start()</see><return type="void"/><description/><shortdescription>Set &amp;quot;Stop&amp;quot; marker.</shortdescription></doc></function><function name="set_marker" undoc="false" access="public"><doc><see type="function">start()</see><see type="function">stop()</see><parameter name="$name" type="string">of the marker to be set</parameter><return type="void"/><description/><shortdescription>Set marker.</shortdescription></doc></function><function name="time_elapsed" undoc="false" access="public"><doc><parameter name="$start" default="&amp;quot;Start&amp;quot;" type="string">start marker, defaults to &amp;quot;Start&amp;quot;</parameter><parameter name="$end" default="&amp;quot;Stop&amp;quot;" type="string">end marker, defaults to &amp;quot;Stop&amp;quot;</parameter><return name="$time_elapsed" type="double"> time elapsed between $start and $end</return><description/><shortdescription>Returns the time elapsed betweens two markers.</shortdescription></doc></function><function name="get_profiling" undoc="false" access="public"><doc><return name="$profiling" type="array"/><description>$profiling[ x ][ &amp;quot;name&amp;quot;  ] = name of marker x$profiling[ x ][ &amp;quot;time&amp;quot;  ] = time index of marker x$profiling[ x ][ &amp;quot;diff&amp;quot;  ] = execution time from marker x-1 to this marker x$profiling[ x ][ &amp;quot;total&amp;quot; ] = total execution time up to marker x</description><shortdescription>Returns profiling information.</shortdescription></doc></function><variable name="$markers" access="public" type="array">array()<doc><description/><shortdescription>Contains the markers</shortdescription></doc></variable><subclasses><subclass>Benchmark_Iterate</subclass></subclasses></class></phpdoc>
