Changeset 41219 in webkit for trunk/JavaScriptCore/jsc.cpp


Ignore:
Timestamp:
Feb 25, 2009, 11:11:39 AM (16 years ago)
Author:
[email protected]
Message:

Use timeBeginPeriod to enable timing resolution greater than 16ms in command line jsc for Windows.
Allows more accurate reporting of benchmark times via command line jsc.exe. Doesn't affect WebKit's use of JavaScriptCore.


Reviewed by Adam Roben.

  • jsc.cpp: (main):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jsc.cpp

    r40663 r41219  
    5555#include <crtdbg.h>
    5656#include <windows.h>
     57#include <mmsystem.h>
    5758#endif
    5859
     
    295296    _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
    296297    _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE);
     298#endif
     299
     300#if COMPILER(MSVC) && !PLATFORM(WIN_CE)
     301    timeBeginPeriod(1);
    297302#endif
    298303
Note: See TracChangeset for help on using the changeset viewer.