wpdb::timer_stop()publicWP 1.5.0

Stops the debugging timer.

Method of the class: wpdb{}

No Hooks.

Return

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

Usage

global $wpdb;
$wpdb->timer_stop();

Changelog

Since 1.5.0 Introduced.

wpdb::timer_stop() code WP 6.5.2

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