Looks like $_SERVER['REQUEST_TIME'] is a unix timestamp - so the
resolution is only 1 second. e.g. if you made a request @ 10:00:00.000
and was completed in 90ms (ending @ 10:00:00.090) then it would report
90ms. However if the request was @ 10:00:00.500 and took 90ms, then
the end time would be 10:00:00.590, but since the REQUEST_TIME would
be 10:00:00 it would report 590ms. This does seem to break the
webdebug toolbar somewhat... I'm *guessing* sf_time_start was measured
to the millisecond.

On Oct 6, 6:39 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Okay, i found it in the upgrade text:
>
> "The total time displayed on the web debug toolbar is now computed
> with $_SERVER['REQUEST_TIME'] (we used to compute it with
> sfConfig::get('sf_time_start'), which does not exist anymore). This
> means that the time displayed will be much larger than in symfony 1.0
> and 1.1"
>
> But is this wide gap between the values ok? I usually had for my sf1.1
> project about 200 ms on my local dev server, and about 50 ms on my
> production server, for the same page. I can "see", that my remote
> server is "fast" ;o)
>
> But now, my timer jumps between 600 ms and 1800 ms on my local server,
> and between 90 ms and 900 ms (!) on my production server?! For the
> same page? So now there is somehow no difference between my cheap 1-
> proc linux pc and a big quad-proc server, when i look at the
> timer ... ? How is the time now calculated?
>
> What will the timer say on a windows machine?! 215400 ms ? ;o)
>
> Did someone else noticed it?
>
> Michael
>
> On 6 Okt., 07:41, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> > i just wonder and i'd like to know if anybody experienced the same:
> > while in symfony 1.1 (and before) my debug time had a nearly constant
> > value between requests, it changed in 1.2 drastically. First request
> > needs 1.5x of the usual time, the next 2x, the next 1x, the next 2.2x
> > and sometimes even 3x of the usual time needed in symfony 1.1
>
> > The value changes randomly on every request. What can be the cause of
> > this? I'm able to switch my symfony version and to compare the time,
> > and it is always almost constant in versions before 1.2, while in 1.2
> > it jumps in a really wide range.
>
> > Merci,
> > Michael
>
> > PS: Working on debian linux, PHP 5.2.0 and PHP 5.2.6, both with the
> > same effect

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to