[Webkit-unassigned] [Bug 62159] Implement montonicallyIncreasingClock() on Qt

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 21 13:11:53 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=62159





--- Comment #25 from Pierre Rossi <pierre.rossi at gmail.com>  2011-12-21 13:11:52 PST ---
(In reply to comment #23)
> I've implemented monotonicallyIncreasingTime() using QElapsedTimer, but it is failing to pass check-webkit-style because when that script checks for multiple includes of the same file, it does not take into account platform specific includes (ie includes inside #if PLATFORM(MAC)...#elif PLATFORM(QT)...  being required by more than one platform)
> 
> Using #if HAVE(SYS_TIME_H) like is done in DateMath.cpp, I can get rid of the ""sys/time.h" already included", but there will still be an "Alphabetical sorting problem". I can't see a way to get rid of that without making that part of the file completely unreadable.

I actually fail to see why you would want to manually include "sys/time.h" at all. This would most likely be a problem on platforms like Windows for instance. The platform-specific implementations of QElapsedTimer will take care of using what's right on the various platform Qt runs on for you.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list