wpdb::timer_stop() WordPress Method

The wpdb::timer_stop() method is a Wordpress function that allows you to stop the timer for a given operation. This is useful for measuring the performance of your website or plugin.

wpdb::timer_stop() #

Stops the debugging timer.


Return

(float) Total time spent on the query, in seconds.


Top ↑

Source

File: wp-includes/wp-db.php

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


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.