Back

what time format does "DB::getQueryLog()" return?


IOM posted 5 years ago

I read the "API" and it says pretty much nothing, doesn't give a clue about what DB::getQueryLog() is rewording of. http://laravel.com/api/4.1/Illuminate/Database/Connection.html#method_getQueryLog

I just figured out that the time it returns in this array for each query is not seconds. What is the unit of measurement here?

arcollector replied 5 years ago

it's calculated using the microtime function, what you get is a milliseconds time value

look its implementation here: https://github.com/laravel/framework/blob/da5bdc94574d796b136d607365619506ca67ac50/src/Illuminate/Database/Connection.php#L592


Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us