phpknight Posted October 27, 2007 Share Posted October 27, 2007 When I execute a query with PHP, how do I get the time executed to return to my script like it does in phpMyAdmin? I cannot seem to figure it out. Link to comment https://forums.phpfreaks.com/topic/74994-solved-getting-query-execution-time/ Share on other sites More sharing options...
Barand Posted October 27, 2007 Share Posted October 27, 2007 call microtime() before and after and subtract to get the time taken Link to comment https://forums.phpfreaks.com/topic/74994-solved-getting-query-execution-time/#findComment-379264 Share on other sites More sharing options...
phpknight Posted October 27, 2007 Author Share Posted October 27, 2007 Oh, okay. I already do that. I was just wondering if there was some thing that came back with the result from the query or something. Link to comment https://forums.phpfreaks.com/topic/74994-solved-getting-query-execution-time/#findComment-379270 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.