Changeset 46660 in webkit for trunk/JavaScriptCore/wtf/Platform.h


Ignore:
Timestamp:
Jul 31, 2009, 10:26:11 PM (16 years ago)
Author:
[email protected]
Message:

2009-07-31 Yong Li <[email protected]>

Reviewed by George Staikos.

Resurrect the old GetTickCount implementation of currentTime, controlled by WTF_USE_QUERY_PERFORMANCE_COUNTER
currentSystemTime taken from older WebKit; currentTime written by Yong Li <[email protected]>; cleanup by Joe Mason <[email protected]>
https://bugs.webkit.org/show_bug.cgi?id=27848

  • wtf/CurrentTime.cpp: (WTF::currentSystemTime): get current time with GetCurrentFT (WTF::currentTime): track msec elapsed since first currentSystemTime call using GetTickCount
  • wtf/Platform.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/Platform.h

    r46623 r46660  
    339339#endif
    340340
     341/* On Windows, use QueryPerformanceCounter by default */
     342#if PLATFORM(WIN_OS)
     343#define WTF_USE_QUERY_PERFORMANCE_COUNTER  1
     344#endif
     345
    341346#if PLATFORM(WINCE) && !PLATFORM(QT)
    342347#undef ENABLE_JSC_MULTIPLE_THREADS
Note: See TracChangeset for help on using the changeset viewer.