W3cubDocs

/WordPress

wpdb::timer_stop(): float

Stops the debugging timer.

Return

float Total time spent on the query, in seconds.

Source

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

Changelog

Version Description
1.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wpdb/timer_stop