techiefreak05 Posted August 31, 2006 Share Posted August 31, 2006 i just built a rather cool.. i think.. cuz i made it, search function on my website .. and id like to display how long the query took to finish, how would i do this? Quote Link to comment Share on other sites More sharing options...
Jenk Posted August 31, 2006 Share Posted August 31, 2006 top of the page:[code=php:0]<?php$start = microtime(true);[/code]bottom of the page:[code=php:0]$end = round(microtime(true) - $start, 3);echo 'Query completed in ' . $end . ' seconds';[/code] Quote Link to comment Share on other sites More sharing options...
techiefreak05 Posted August 31, 2006 Author Share Posted August 31, 2006 thanks! :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.