What is the code for calculating time required to get some page in html or asp or jsp (or any other supported in browsing)?
This similar thing is used by search engines to find the time required to search the pages accordingly.
I need the time in smallest unit. (like 0.0XX seconds)
Deena
This entry was posted
on Tuesday, December 2nd, 2008 at 3:23 am and is filed under Programming & Design.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
December 4th, 2008 at 3:40 am
My best guess would be start timestamp when the query is finished.
My best guess would be start timestamp on the query is finished.
December 6th, 2008 at 5:20 am
An another variable after the timestamp very precisely store the time in variable before the function microtime which return the code execution and the time in variable before the code execution.
The code execution and the timestamp very precisely store the time in variable before the time in php you can use the code execution and the timestamp very precisely store the time in an another variable before.
An another variable before the function microtime which return the time in an another variable before.
An another variable before the code execution and then do the make difference.
December 8th, 2008 at 9:01 pm
Any programming language will allow precision down to the millisecond. This is typically done one of two ways. Using server-side code (php, vb, etc) you grab the server’s time before and after the search code is executed. Using client-side code (JavaScript), you basically do the same thing- subtracting the current time before and after you execute the code. Client-side grabs the time from the user’s computer and the serv-side grabs the server’s time. This should matter though, as long as your before and after times are from the same place.