wpdb::timer_start() WordPress Method

The wpdb::timer_start() method is used to start a timer for measuring the time spent on a particular database operation. This is useful for debugging purposes, to see how long a particular operation takes. The method takes a single parameter, which is a label for the timer.

wpdb::timer_start() #

Starts the timer, for debugging purposes.


Return

(true)


Top ↑

Source

File: wp-includes/wp-db.php

	public function timer_start() {
		$this->time_start = microtime( true );
		return true;
	}


Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

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.