function timer_read

cis7 timer_read($name)
cle7 timer_read($name)
elmsmedia7 timer_read($name)
icor7 timer_read($name)
meedjum_blog7 timer_read($name)
mooc7 timer_read($name)

Reads the current timer value without stopping the timer.


$name: The name of the timer.

Return value

The current timer value in ms.

6 calls to timer_read()
devel_timer in sites/all/modules/ulmus/devel/devel.module
Displays page execution time at the bottom of the page.
drupal_http_request in includes/
Performs an HTTP request.
entity_iframe_statistics_exit in sites/all/modules/elmsln_contrib/entity_iframe/modules/entity_iframe_statistics/entity_iframe_statistics.module
Implements hook_exit().
httprl.examples.php in sites/all/modules/ulmus/httprl/examples/httprl.examples.php
HTTP Parallel Request Library code examples.
statistics_exit in modules/statistics/statistics.module
Implements hook_exit().

... See full list


includes/, line 476
Functions that need to be loaded on every Drupal request.


function timer_read($name) {
  global $timers;

  if (isset($timers[$name]['start'])) {
    $stop = microtime(TRUE);
    $diff = round(($stop - $timers[$name]['start']) * 1000, 2);

    if (isset($timers[$name]['time'])) {
      $diff += $timers[$name]['time'];
    return $diff;
  return $timers[$name]['time'];



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.