cvs: peardoc /en/package benchmarking.xml /en/package/benchmarking benchmark.xml /en/package/benchmarking/benchmark intro.xml iterate.xml
profiler.xml timer.xml
| From: | Anant Narayanan | Date: | Sat, 23 Jun 2007 01:00:07 +0000 |
| Subject: | cvs: peardoc /en/package benchmarking.xml /en/package/benchmarking benchmark.xml /en/package/benchmarking/benchmark intro.xml iterate.xml profiler.xml timer.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9804@lists.php.net to get a copy of this message | ||
anant Sat Jun 23 01:00:07 2007 UTC
Added files:
/peardoc/en/package/benchmarking benchmark.xml
/peardoc/en/package/benchmarking/benchmark intro.xml iterate.xml
profiler.xml timer.xml
Modified files:
/peardoc/en/package benchmarking.xml
Log:
Add user-end documentation for Benchmarking_Benchmark. Closes bug #11099
http://cvs.php.net/viewvc.cgi/peardoc/en/package/benchmarking.xml?r1=1.5&r2=1.6&diff_format=u Index: peardoc/en/package/benchmarking.xml diff -u peardoc/en/package/benchmarking.xml:1.5 peardoc/en/package/benchmarking.xml:1.6 --- peardoc/en/package/benchmarking.xml:1.5 Fri Feb 17 16:04:31 2006 +++ peardoc/en/package/benchmarking.xml Sat Jun 23 01:00:07 2007 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <chapter id="package.benchmarking"> <title>Benchmarking</title> @@ -9,6 +9,8 @@ &blankpagehack; + &package.benchmarking.benchmark; + </chapter> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/peardoc/en/package/benchmarking/benchmark.xml?view=markup&rev=1.1 Index: peardoc/en/package/benchmarking/benchmark.xml +++ peardoc/en/package/benchmarking/benchmark.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <sect1 id="package.benchmarking.benchmark"> <title>Benchmarking_Benchmark</title> <para> Provides a simple framework for profiling and benchmarking your PHP applications. </para> &package.benchmarking.benchmark.intro; &package.benchmarking.benchmark.timer; &package.benchmarking.benchmark.profiler; &package.benchmarking.benchmark.iterate; </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/benchmarking/benchmark/intro.xml?view=markup&rev=1.1 Index: peardoc/en/package/benchmarking/benchmark/intro.xml +++ peardoc/en/package/benchmarking/benchmark/intro.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.benchmarking.benchmark.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>About Benchmarking_Benchmark</refpurpose> </refnamediv> <refsect1> <title>About Benchmarking_Benchmark</title> <para> Benchmark is a simple framework that allows you time, profile and benchmark your PHP scripts and applications. Benchmark provides you with three classes to enable you to profile: <classname>Benchmark_Timer</classname>, <classname>Benchmark_Profiler</classname> and <classname>Benchmark_Iterate</classname>. </para> <para> The package is very easy to use. We'll discuss each of the three classes in detail, but some concepts are common. You basically instantiate one of the classes, begin your script (or portion of code that you want to profile) and analyze the results afterward. </para> <para> All the three classes have two modes of operation: <emphasis>automatic</emphasis> and <emphasis>manual</emphasis>. In the <emphasis>automatic</emphasis> mode of operation, the profiling is automatically started and stopped, and results displayed. In the <emphasis>manual</emphasis> mode, you are responsible for starting, stopping and displaying the results. </para> <para> The <emphasis>automatic</emphasis> mode makes sense in cases where you want to quickly test a fixed portion of code like a script or a single function. The <emphasis>manual</emphasis> mode offers you more control, which means arbitary portions of code can be profiled, and the results can be carefully analyzed before being displayed. In the <emphasis>automatic</emphasis> mode of operation, the results are always displayed; while in the <emphasis>manual</emphasis> mode you have the option of logging them or storing them in a database. </para> <para> If you wish to operate a class in <emphasis>automatic</emphasis> mode, simply pass the <constant>TRUE</constant> parameter to its constructor. Instantiating a class without a paramater or with the <constant>FALSE</constant> parameter sets the mode of operation to <emphasis>manual</emphasis> for that class. </para> </refsect1> <refsect1> <title>Which class to choose?</title> <para> <classname>Benchmark_Timer</classname> is the most fundamental class in the package. It performs the simple function of recording the amount of time it takes for a fixed amount of code to execute. </para> <para> <classname>Benchmark_Profiler</classname> behaves just like <classname>Benchmark_Timer</classname> with the exception that you are allowed to specify sections between the start and stop times, at which point the timing details are recorded. This provides the ability to nest timers and profile functions which are called multiple times. </para> <para> <classname>Becnhmark_Iterate</classname> is a class that runs a particular function several times over and records the amount of time it took for each iteration to execute. </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/benchmarking/benchmark/iterate.xml?view=markup&rev=1.1 Index: peardoc/en/package/benchmarking/benchmark/iterate.xml +++ peardoc/en/package/benchmarking/benchmark/iterate.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.benchmarking.benchmark.iterate"> <refnamediv> <refname>Benchmark_Iterate</refname> <refpurpose>About Benchmark_Iterate</refpurpose> </refnamediv> <refsect1> <title>About Benchmark_Iterate</title> <para> This class is useful when you want to iterate over a single piece of code (a function) several times over. Timing information is recorded for every iteration. An example follows. </para> <example> <title> Benchmark_Iterate in manual mode </title> <programlisting role="php"> <![CDATA[ <?php require_once 'Benchmark/Iterate.php'; $benchmark = new Benchmark_Iterate; function calculation($num) { $x = sin($num) * 100; $y = tan($x); return; } $benchmark->run(100, 'calculation', 45.6); $result = $benchmark->get(); print_r($result); ?> ]]> </programlisting> </example> <para> The example above will generate an output as shown below when run with the PHP CLI SAPI. </para> <example> <title> Results of a test run of Benchmark_Iterate </title> <programlisting role="html"> <![CDATA[ Array ( [1] => 0.000073 [2] => 0.000014 [3] => 0.000011 [4] => 0.000011 [5] => 0.000011 ..93 more results.. [99] => 0.000011 [100] => 0.000011 [mean] => 0.000011 [iterations] => 100 ) ]]> </programlisting> </example> <para> You can display formatted results either by running the script in <emphasis>automatic</emphasis> mode or by using the <function>display</function> method. For more information of the methods this class implements, refer to the API documentation. </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/benchmarking/benchmark/profiler.xml?view=markup&rev=1.1 Index: peardoc/en/package/benchmarking/benchmark/profiler.xml +++ peardoc/en/package/benchmarking/benchmark/profiler.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.benchmarking.benchmark.profiler"> <refnamediv> <refname>Benchmark_Profiler</refname> <refpurpose>About Benchmark_Profiler</refpurpose> </refnamediv> <refsect1> <title>About Benchmark_Profiler</title> <para> This class behaves mostly like <classname>Benchmark_Timer</classname> with the exception that you are allowed to specify the beginning and end of <emphasis>sections</emphasis> within the code to be profiled. <emphasis>sections</emphasis> are different from <emphasis>markers</emphasis> (<emphasis>markers</emphasis>) don't have <emphasis>ends</emphasis> in the sense that they are stateful and remember how many times they have been <emphasis>entered</emphasis>. </para> <para> Timing information is recorded at the beginning and end of the code to be profiled and at the beginning and end of every <emphasis>section</emphasis> everytime it is encountered. An example follows. </para> <example> <title> Benchmark_Profiler in manual mode </title> <programlisting role="php"> <![CDATA[ <?php require_once 'Benchmark/Profiler.php'; $profiler = new Benchmark_Profiler; function wasteTime() { $j = 2; for ($i = 0; $i < 100; $i++) { $j = $j * 10; } return; } function myFunction() { global $profiler; $profiler->enterSection('myFunction'); wasteTime(); $profiler->leaveSection('myFunction'); return; } // Manual mode, so start manually $profiler->start(); wasteTime(); myFunction(); myFunction(); wasteTime(); // Manual mode, stop and display results $profiler->stop(); $profiler->display(); ?> ]]> </programlisting> </example> <para> The example above will generate an output as shown below when run with the PHP CLI SAPI. Running it with the Apache SAPI will produce the same results, but formatted as HTML. </para> <example> <title> Results of a test run of Benchmark_Profiler </title> <programlisting role="html"> <![CDATA[ ------------------------------------------------------------------------------------ Section Total Ex Time Netto Ex Time #Calls Percentage ------------------------------------------------------------------------------------ myFunction 5.8174133300781E-5 5.8174133300781E-5 2 17.22% Global 0.00033783912658691 0.00027966499328613 1 100.00% ]]> </programlisting> </example> <para> As you can see, the default output may not be too helpful. You can obtain detailed section by section profiling information in <emphasis>manual</emphasis> mode through methods like <function>getSectionInformations</function> and <function>getAllSectionsInformations</function>. Refer to the API documentation for more information. </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/benchmarking/benchmark/timer.xml?view=markup&rev=1.1 Index: peardoc/en/package/benchmarking/benchmark/timer.xml +++ peardoc/en/package/benchmarking/benchmark/timer.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.benchmarking.benchmark.timer"> <refnamediv> <refname>Benchmark_Timer</refname> <refpurpose>About Benchmark_Timer</refpurpose> </refnamediv> <refsect1> <title>About Benchmark_Timer</title> <para> As mentioned before, this class simply records the time taken for a particular snippet of code to execute. In the <emphasis>automatic</emphasis> mode, this means the code remaining after the class's instantiation. In <emphasis>manual</emphasis> mode, the snippet of code to be timed is specified between calls to the <function>start</function> and <function>stop</function> methods of the class. </para> <para> Additionally, you may specify <emphasis>markers</emphasis> between the snippet of code to be timed. The timing information is recorded wherever markers are defined. </para> <para> An example will make this clear. </para> <example> <title> Benchmark_Timer in automatic mode </title> <programlisting role="php"> <![CDATA[ <?php require_once "Benchmark/Timer.php"; $timer = new Benchmark_Timer(TRUE); // Timer is in automatic mode, so timing starts here. $j = array(); for ($i = 0; $i < 100; $i++) { $j[] = $i; if ($i == 49) $timer->setMarker('Midway'); } // Timer automatically stops and results are displayed. ?> ]]> </programlisting> </example> <para> The example above will generate an output as shown below when run with the PHP CLI SAPI. Running it with the Apache SAPI will produce the same results, but formatted as HTML. </para> <example> <title> Results of a test run of Benchmark_Timer </title> <programlisting role="html"> <![CDATA[ ---------------------------------------------------- marker time index ex time perct ---------------------------------------------------- Start 1182558324.48638900 - 0.00% ---------------------------------------------------- Midway 1182558324.48655800 0.000169 62.13% ---------------------------------------------------- Stop 1182558324.48666100 0.000103 37.87% ---------------------------------------------------- total - 0.000272 100.00% ---------------------------------------------------- ]]> </programlisting> </example> <para> In most cases however, you would like to do something with that information. When you run the timer in <emphasis>manual</emphasis> mode, you can obtain the results as an associative array using the <function>getProfiling</function> method. To display the information (as shown above) use the <function>display</function> method. More information on the methods that <classname>Benchmark_Timer</classname> implements is available in the API Documentation. </para> </refsect1> </refentry>
http://cvs.php.net/viewvc.cgi/peardoc/en/package/benchmarking.xml?r1=1.5&r2=1.6&diff_format=u Index: peardoc/en/package/benchmarking.xml diff -u peardoc/en/package/benchmarking.xml:1.5 peardoc/en/package/benchmarking.xml:1.6 --- peardoc/en/package/benchmarking.xml:1.5 Fri Feb 17 16:04:31 2006 +++ peardoc/en/package/benchmarking.xml Sat Jun 23 01:00:07 2007 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <chapter id="package.benchmarking"> <title>Benchmarking</title> @@ -9,6 +9,8 @@ &blankpagehack; + &package.benchmarking.benchmark; + </chapter> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/peardoc/en/package/benchmarking/benchmark.xml?view=markup&rev=1.1 Index: peardoc/en/package/benchmarking/benchmark.xml +++ peardoc/en/package/benchmarking/benchmark.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <sect1 id="package.benchmarking.benchmark"> <title>Benchmarking_Benchmark</title> <para> Provides a simple framework for profiling and benchmarking your PHP applications. </para> &package.benchmarking.benchmark.intro; &package.benchmarking.benchmark.timer; &package.benchmarking.benchmark.profiler; &package.benchmarking.benchmark.iterate; </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/benchmarking/benchmark/intro.xml?view=markup&rev=1.1 Index: peardoc/en/package/benchmarking/benchmark/intro.xml +++ peardoc/en/package/benchmarking/benchmark/intro.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.benchmarking.benchmark.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>About Benchmarking_Benchmark</refpurpose> </refnamediv> <refsect1> <title>About Benchmarking_Benchmark</title> <para> Benchmark is a simple framework that allows you time, profile and benchmark your PHP scripts and applications. Benchmark provides you with three classes to enable you to profile: <classname>Benchmark_Timer</classname>, <classname>Benchmark_Profiler</classname> and <classname>Benchmark_Iterate</classname>. </para> <para> The package is very easy to use. We'll discuss each of the three classes in detail, but some concepts are common. You basically instantiate one of the classes, begin your script (or portion of code that you want to profile) and analyze the results afterward. </para> <para> All the three classes have two modes of operation: <emphasis>automatic</emphasis> and <emphasis>manual</emphasis>. In the <emphasis>automatic</emphasis> mode of operation, the profiling is automatically started and stopped, and results displayed. In the <emphasis>manual</emphasis> mode, you are responsible for starting, stopping and displaying the results. </para> <para> The <emphasis>automatic</emphasis> mode makes sense in cases where you want to quickly test a fixed portion of code like a script or a single function. The <emphasis>manual</emphasis> mode offers you more control, which means arbitary portions of code can be profiled, and the results can be carefully analyzed before being displayed. In the <emphasis>automatic</emphasis> mode of operation, the results are always displayed; while in the <emphasis>manual</emphasis> mode you have the option of logging them or storing them in a database. </para> <para> If you wish to operate a class in <emphasis>automatic</emphasis> mode, simply pass the <constant>TRUE</constant> parameter to its constructor. Instantiating a class without a paramater or with the <constant>FALSE</constant> parameter sets the mode of operation to <emphasis>manual</emphasis> for that class. </para> </refsect1> <refsect1> <title>Which class to choose?</title> <para> <classname>Benchmark_Timer</classname> is the most fundamental class in the package. It performs the simple function of recording the amount of time it takes for a fixed amount of code to execute. </para> <para> <classname>Benchmark_Profiler</classname> behaves just like <classname>Benchmark_Timer</classname> with the exception that you are allowed to specify sections between the start and stop times, at which point the timing details are recorded. This provides the ability to nest timers and profile functions which are called multiple times. </para> <para> <classname>Becnhmark_Iterate</classname> is a class that runs a particular function several times over and records the amount of time it took for each iteration to execute. </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/benchmarking/benchmark/iterate.xml?view=markup&rev=1.1 Index: peardoc/en/package/benchmarking/benchmark/iterate.xml +++ peardoc/en/package/benchmarking/benchmark/iterate.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.benchmarking.benchmark.iterate"> <refnamediv> <refname>Benchmark_Iterate</refname> <refpurpose>About Benchmark_Iterate</refpurpose> </refnamediv> <refsect1> <title>About Benchmark_Iterate</title> <para> This class is useful when you want to iterate over a single piece of code (a function) several times over. Timing information is recorded for every iteration. An example follows. </para> <example> <title> Benchmark_Iterate in manual mode </title> <programlisting role="php"> <![CDATA[ <?php require_once 'Benchmark/Iterate.php'; $benchmark = new Benchmark_Iterate; function calculation($num) { $x = sin($num) * 100; $y = tan($x); return; } $benchmark->run(100, 'calculation', 45.6); $result = $benchmark->get(); print_r($result); ?> ]]> </programlisting> </example> <para> The example above will generate an output as shown below when run with the PHP CLI SAPI. </para> <example> <title> Results of a test run of Benchmark_Iterate </title> <programlisting role="html"> <![CDATA[ Array ( [1] => 0.000073 [2] => 0.000014 [3] => 0.000011 [4] => 0.000011 [5] => 0.000011 ..93 more results.. [99] => 0.000011 [100] => 0.000011 [mean] => 0.000011 [iterations] => 100 ) ]]> </programlisting> </example> <para> You can display formatted results either by running the script in <emphasis>automatic</emphasis> mode or by using the <function>display</function> method. For more information of the methods this class implements, refer to the API documentation. </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/benchmarking/benchmark/profiler.xml?view=markup&rev=1.1 Index: peardoc/en/package/benchmarking/benchmark/profiler.xml +++ peardoc/en/package/benchmarking/benchmark/profiler.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.benchmarking.benchmark.profiler"> <refnamediv> <refname>Benchmark_Profiler</refname> <refpurpose>About Benchmark_Profiler</refpurpose> </refnamediv> <refsect1> <title>About Benchmark_Profiler</title> <para> This class behaves mostly like <classname>Benchmark_Timer</classname> with the exception that you are allowed to specify the beginning and end of <emphasis>sections</emphasis> within the code to be profiled. <emphasis>sections</emphasis> are different from <emphasis>markers</emphasis> (<emphasis>markers</emphasis>) don't have <emphasis>ends</emphasis> in the sense that they are stateful and remember how many times they have been <emphasis>entered</emphasis>. </para> <para> Timing information is recorded at the beginning and end of the code to be profiled and at the beginning and end of every <emphasis>section</emphasis> everytime it is encountered. An example follows. </para> <example> <title> Benchmark_Profiler in manual mode </title> <programlisting role="php"> <![CDATA[ <?php require_once 'Benchmark/Profiler.php'; $profiler = new Benchmark_Profiler; function wasteTime() { $j = 2; for ($i = 0; $i < 100; $i++) { $j = $j * 10; } return; } function myFunction() { global $profiler; $profiler->enterSection('myFunction'); wasteTime(); $profiler->leaveSection('myFunction'); return; } // Manual mode, so start manually $profiler->start(); wasteTime(); myFunction(); myFunction(); wasteTime(); // Manual mode, stop and display results $profiler->stop(); $profiler->display(); ?> ]]> </programlisting> </example> <para> The example above will generate an output as shown below when run with the PHP CLI SAPI. Running it with the Apache SAPI will produce the same results, but formatted as HTML. </para> <example> <title> Results of a test run of Benchmark_Profiler </title> <programlisting role="html"> <![CDATA[ ------------------------------------------------------------------------------------ Section Total Ex Time Netto Ex Time #Calls Percentage ------------------------------------------------------------------------------------ myFunction 5.8174133300781E-5 5.8174133300781E-5 2 17.22% Global 0.00033783912658691 0.00027966499328613 1 100.00% ]]> </programlisting> </example> <para> As you can see, the default output may not be too helpful. You can obtain detailed section by section profiling information in <emphasis>manual</emphasis> mode through methods like <function>getSectionInformations</function> and <function>getAllSectionsInformations</function>. Refer to the API documentation for more information. </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/benchmarking/benchmark/timer.xml?view=markup&rev=1.1 Index: peardoc/en/package/benchmarking/benchmark/timer.xml +++ peardoc/en/package/benchmarking/benchmark/timer.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.benchmarking.benchmark.timer"> <refnamediv> <refname>Benchmark_Timer</refname> <refpurpose>About Benchmark_Timer</refpurpose> </refnamediv> <refsect1> <title>About Benchmark_Timer</title> <para> As mentioned before, this class simply records the time taken for a particular snippet of code to execute. In the <emphasis>automatic</emphasis> mode, this means the code remaining after the class's instantiation. In <emphasis>manual</emphasis> mode, the snippet of code to be timed is specified between calls to the <function>start</function> and <function>stop</function> methods of the class. </para> <para> Additionally, you may specify <emphasis>markers</emphasis> between the snippet of code to be timed. The timing information is recorded wherever markers are defined. </para> <para> An example will make this clear. </para> <example> <title> Benchmark_Timer in automatic mode </title> <programlisting role="php"> <![CDATA[ <?php require_once "Benchmark/Timer.php"; $timer = new Benchmark_Timer(TRUE); // Timer is in automatic mode, so timing starts here. $j = array(); for ($i = 0; $i < 100; $i++) { $j[] = $i; if ($i == 49) $timer->setMarker('Midway'); } // Timer automatically stops and results are displayed. ?> ]]> </programlisting> </example> <para> The example above will generate an output as shown below when run with the PHP CLI SAPI. Running it with the Apache SAPI will produce the same results, but formatted as HTML. </para> <example> <title> Results of a test run of Benchmark_Timer </title> <programlisting role="html"> <![CDATA[ ---------------------------------------------------- marker time index ex time perct ---------------------------------------------------- Start 1182558324.48638900 - 0.00% ---------------------------------------------------- Midway 1182558324.48655800 0.000169 62.13% ---------------------------------------------------- Stop 1182558324.48666100 0.000103 37.87% ---------------------------------------------------- total - 0.000272 100.00% ---------------------------------------------------- ]]> </programlisting> </example> <para> In most cases however, you would like to do something with that information. When you run the timer in <emphasis>manual</emphasis> mode, you can obtain the results as an associative array using the <function>getProfiling</function> method. To display the information (as shown above) use the <function>display</function> method. More information on the methods that <classname>Benchmark_Timer</classname> implements is available in the API Documentation. </para> </refsect1> </refentry>