Created
October 26, 2017 09:05
-
-
Save dingo-d/8ffc0b1edf8832f408b27165d0b3575a to your computer and use it in GitHub Desktop.
Query execution time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$current_time = microtime( true ); | |
$query_args = array( | |
// query goes here. | |
); | |
$search_results = new WP_Query( $query_args ); | |
$end_time = microtime( true ); | |
$new_time = $end_time - $current_time; | |
error_log( print_r( $new_time, true ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment