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.
Source
File: wp-includes/wp-db.php
public function timer_stop() {
return ( microtime( true ) - $this->time_start );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |