You are here

function devel_timer in Devel 7

Same name and namespace in other branches
  1. 5 devel.module \devel_timer()
  2. 6 devel.module \devel_timer()

Displays page execution time at the bottom of the page.

Return value

string A message indicating how long it took to execute the page.

1 call to devel_timer()
devel_shutdown_summary in ./devel.module
Returns the rendered shutdown summary.
4 string references to 'devel_timer'
devel_admin_settings in ./devel.admin.inc
Form constructor for the settings form.
devel_shutdown_summary in ./devel.module
Returns the rendered shutdown summary.
devel_uninstall in ./devel.install
Implements hook_uninstall().
devel_update_7008 in ./devel.install
Change variable "dev_timer" to "devel_timer".

File

./devel.module, line 1847
This module holds functions useful for Drupal development.

Code

function devel_timer() {
  $time = timer_read('page');
  return t_safe(' Page execution time was @time ms.', array(
    '@time' => $time,
  ));
}