class Timer

Provides helpers to use timers throughout a request.

Hierarchy

  • class \Drupal\Component\Utility\Timer

Related topics

Utility classes and functions
Overview of utility classes and functions for developers.

File

core/lib/Drupal/Component/Utility/Timer.php, line 10

Namespace

Drupal\Component\Utility

Members

Name Modifiers Type Description
Timer::$timers static protected property
Timer::read static public function Reads the current timer value without stopping the timer.
Timer::start static public function Starts the timer with the specified name.
Timer::stop static public function Stops the timer with the specified name.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!Timer.php/class/Timer/8.1.x