PHP – WordPress – Output Number of Database Queries

This following PHP example helps you to output the number of database queries and time in seconds, 
it took to complete in WordPress.

Code Example:

##################
<?php echo $wpdb->num_queries; ?> <?php _e('queries'); ?>. <?php timer_stop(1); ?> <?php _e('seconds'); ?>
##################

Post to Twitter Post to Digg Post to Facebook Post to Google Buzz Send Gmail