Re: [PHP] Time consumed in microseconds

2004-08-31 Thread Karam Chand
Darn missed it. Looking into the docs I am using code somthing like this: $start = microtime(); $result = mysql_query ( $query, $mysql ); $end = microtime(); $diff = microtime_diff ($start, $end); function microtimdiff() is given by: function

Re: [PHP] Time consumed in microseconds

2004-08-31 Thread raditha dissanayake
Karam Chand wrote: Darn missed it. Looking into the docs I am using code somthing like this: If you are really keen about chaning +1 to ++ and double quotes to single quotes in the hope of shaving off a few milliseconds in execution time you might want to try something like xdebug. --

[PHP] Time consumed in microseconds

2004-08-30 Thread Karam Chand
Hello, In Win32 API to profile a job we use the following method: timetaken = GetTickCount(); /* do some job */ timetaken = GetTickCount() - timetaken; In this way timetaken returns you the time taken by the job to complete? How can I get it in PHP. I want the exact figure in ms? I used

Re: [PHP] Time consumed in microseconds

2004-08-30 Thread John Holmes
Karam Chand wrote: In Win32 API to profile a job we use the following method: timetaken = GetTickCount(); /* do some job */ timetaken = GetTickCount() - timetaken; In this way timetaken returns you the time taken by the job to complete? How can I get it in PHP. I want the exact figure in ms? I