That's in both the qt port and gdk thanks.
And I'm the one to blame.
I don't know if qt has a api for this but if it does then the fix there
may be to use the qt portable api if it exists.

Thanks.

On 8/29/06, Ronan Meneu <[EMAIL PROTECTED]> wrote:
Hello,

I think there is a problem in the following function :

double currentTime()
 {
    time_t ttime;
     time(&ttime);
    return (double)ttime;
 }

from the file WebCore/platform/gdk/SystemTimeLinux.cpp.
With this code, time is rounded to the second. Result is that display is
slow, because timers are delayed too much.

A fix could be to use the gettimeofday function:

double currentTime()
 {
  struct timeval aTimeval;
   struct timezone aTimezone;

   gettimeofday( &aTimeval, &aTimezone );
  return (double)aTimeval.tv_sec + (double)(aTimeval.tv_usec / 1000000.0 );
}

I have tested it and now display is immediate on many pages. Layout tests
are executed nearly four time faster.

Does someone confirm this is a bug ? Do i need to fill in a bug and post a
patch ?

Thanks.

  Ronan

--
Ronan Meneu
Origyn Web Browser for Embedded Systems Team
Senior Software Engineer
_______________________________________________
webkit-dev mailing list
webkit-dev@opendarwin.org
http://www.opendarwin.org/mailman/listinfo/webkit-dev



_______________________________________________
webkit-dev mailing list
webkit-dev@opendarwin.org
http://www.opendarwin.org/mailman/listinfo/webkit-dev

Reply via email to