Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

Public Member Functions | Public Attributes | List of all members
eZBenchmark Class Reference

## Public Member Functions
| __construct ()
| start ()
| stop ()
| elapsed ()
| printResults ( $return=false)

## Public Attributes
| $StartTime
| $StopTime

## Detailed Description

! eZCommon Provied utility functions for http.

include_once( "kernel/classes/ezbenchmark.php" );
$bench = new eZBenchmark();
$bench->start();
// do something here
$bench->stop();
$bench->printResults();
eZBenchmark
Definition: ezbenchmark.php:47

Definition at line 46 of file ezbenchmark.php.

## Constructor & Destructor Documentation

## ◆ __construct()

eZBenchmark::__construct | ( |  | ) |

Creates a new eZBenchmark object.

Definition at line 51 of file ezbenchmark.php.

## Member Function Documentation

## ◆ elapsed()

eZBenchmark::elapsed | ( |  | ) |

Returns the elapsed time.

Definition at line 75 of file ezbenchmark.php.

Referenced by printResults().

## ◆ printResults()

eZBenchmark::printResults | ( |  | $return = `false` | ) |

Prints the benchmark results.

Definition at line 90 of file ezbenchmark.php.

References elapsed().

## ◆ start()

eZBenchmark::start | ( |  | ) |

Starts a new benchmark.

Definition at line 59 of file ezbenchmark.php.

## ◆ stop()

eZBenchmark::stop | ( |  | ) |

Stops the benchmark interval.

Definition at line 67 of file ezbenchmark.php.

## Member Data Documentation

## ◆ $StartTime

eZBenchmark::$StartTime

Definition at line 105 of file ezbenchmark.php.

## ◆ $StopTime

eZBenchmark::$StopTime

Definition at line 106 of file ezbenchmark.php.

The documentation for this class was generated from the following file:

- ezbenchmark.php

Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.