Re: [PHP] microtime questions

2006-04-08 Thread tedd
At 1:48 PM -0400 4/7/06, Joe Wollard wrote: I just realized that I could check your version, and it appears that we've found the problem. You're running PHP 4.3.10, so I'd suggest using the non PHP5 work around on php.net's site. Cheers! - Joe -Joe: Thanks very much for you

Re: [PHP] microtime questions

2006-04-08 Thread tedd
Brad: Calm down, I'm simply asking for an explanation Please tell me where it say "Negative times are expected"?? I don't see it. If you will refresh the below link several times, as I asked, you will see it report negative times occasionally. ttp://www.xn--ovg.com/microtime.php That

Re: [PHP] microtime questions

2006-04-08 Thread Brad Bonkoski
tedd wrote: -B At 12:51 PM -0400 4/7/06, Brad Bonkoski wrote: How is the CPU not in question? Does this script run on air? I did not say that. I said that it was not MY CPU that was involved and it isn't. Who cares, it is irrelavent who's CPU it is runing on. It may not be YOUR CPU

Re: [PHP] microtime questions

2006-04-07 Thread Joe Wollard
Tedd, I think Brad was just making some observations, he wasn't trying to be rude. When he said that "the time differentials are too be expected." I think he was just answering the question of why the exact same FOR loop could possibly take different amounts of time to execute under the same condi

Re: [PHP] microtime questions

2006-04-07 Thread tedd
-B At 12:51 PM -0400 4/7/06, Brad Bonkoski wrote: How is the CPU not in question? Does this script run on air? I did not say that. I said that it was not MY CPU that was involved and it isn't. It may not be YOUR CPU, but it is still a CPU bound by the sceduling algorithm of the Operating

Re: [PHP] microtime questions

2006-04-07 Thread Joe Wollard
I just realized that I could check your version, and it appears that we've found the problem. You're running PHP 4.3.10, so I'd suggest using the non PHP5 work around on php.net's site. Cheers! - Joe On 4/7/06, Joe Wollard <[EMAIL PROTECTED]> wrote: > > Tedd, > > The only way that I can even thi

Re: [PHP] microtime questions

2006-04-07 Thread Joe Wollard
Tedd, The only way that I can even think of this as being possible is if you call microtime() instead of microtime(true). The former will return 'msec sec' separated by a space which can produce a negative number because you've essentially got two different types of measurements there. IMHO PHP sh

Re: [PHP] microtime questions

2006-04-07 Thread Brad Bonkoski
How is the CPU not in question? Does this script run on air? It may not be YOUR CPU, but it is still a CPU bound by the sceduling algorithm of the Operating System, so the time differentials are too be expected. -B tedd wrote: At 12:24 PM -0400 4/7/06, Brad Bonkoski wrote: Interesting...

Re: [PHP] microtime questions

2006-04-07 Thread tedd
At 12:24 PM -0400 4/7/06, Brad Bonkoski wrote: Interesting... as for your first question... Know that PHP/Apache does not have free reign to your CPU, so the times could be different based on the scheduling going on in the OS kernel. As for the second one... No idea why you would get a negati

Re: [PHP] microtime questions

2006-04-07 Thread Brad Bonkoski
Interesting... as for your first question... Know that PHP/Apache does not have free reign to your CPU, so the times could be different based on the scheduling going on in the OS kernel. As for the second one... No idea why you would get a negative number, I just copied and ran from the comman

[PHP] microtime questions

2006-04-07 Thread tedd
Hi gang: I'm getting elapsed time results I can't believe. Would anyone care to check out: http://www.xn--ovg.com/microtime.php And answer a couple questions posted there? Thanks. tedd -- http://sperling.com --