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? Link to comment https://forums.phpfreaks.com/topic/19240-how-to-echo-the-query-time/ 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] Link to comment https://forums.phpfreaks.com/topic/19240-how-to-echo-the-query-time/#findComment-83331 Share on other sites More sharing options...
techiefreak05 Posted August 31, 2006 Author Share Posted August 31, 2006 thanks! :-) Link to comment https://forums.phpfreaks.com/topic/19240-how-to-echo-the-query-time/#findComment-83334 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.