Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness. Use timer_stop() instead.

timer_start() WordPress Function

The timer_start() function is used to start a timer. It takes two parameters: the name of the timer and an optional boolean value indicating whether or not to reset the timer. If the boolean value is set to true, the timer will be reset.

timer_start() #

Start the WordPress micro-timer.


Description

Top ↑

See also


Top ↑

Return

(bool) Always returns true.


Top ↑

Source

File: wp-includes/load.php

function timer_start() {
	global $timestart;
	$timestart = microtime( true );
	return true;
}

Top ↑

Changelog

Changelog
VersionDescription
0.71Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.