I saw this question on the Internet ( here and here , for example), but I never saw a good answer. Is it possible to find the time during which a given MySQL query (executed via mysql_query) is accepted through PHP?
It is recommended that you use the php function in some places microtime, but it seems like it might be inaccurate. mysql_querymay get caught up in network latency or a sluggish system that doesn't respond to your request quickly or some other unrelated reason. None of them are directly related to the quality of your request, and this is the only thing I really want to check here. (Please indicate in the comments if you do not agree!)
source
share