Display query processing time

Ask about a PHP problem here.
Post Reply
lakc
Posts: 32
Joined: Fri Oct 21, 2011 6:05 pm

Display query processing time

Post by lakc »

Hey ppl,

How can I display the query processing time taken for result to be processed and retrieved froma query, and then displayed on to a PHP page?

Is there PHP command for this?
User avatar
Temor
Posts: 1186
Joined: Thu May 05, 2011 8:04 pm

Re: Display query processing time

Post by Temor »

I'm not sure if there is a method for this, but I usually instert a timestamp into a variable before and after the query and then I echo out the difference in time between those two timestamps.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Display query processing time

Post by jacek »

Image
lakc
Posts: 32
Joined: Fri Oct 21, 2011 6:05 pm

Re: Display query processing time

Post by lakc »

Thanks and belated Merry xmas wishes to all in the forum
Post Reply