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.
Przykład 31-1. Benchmark_Iterate in manual mode
|
The example above will generate an output as shown below when run with the PHP CLI SAPI.
Przykład 31-2. Results of a test run of Benchmark_Iterate
|
You can display formatted results either by running the script in automatic mode or by using the display() method. For more information of the methods this class implements, refer to the API documentation.
| Poprzedni | Spis treści | Następny |
| Benchmark_Profiler | Początek rozdziału | Caching |