Ignore:
Timestamp:
Feb 26, 2010, 11:50:53 AM (15 years ago)
Author:
[email protected]
Message:

2010-02-26 Janne Koskinen <[email protected]>

Reviewed by Simon Hausmann.

[Qt] Symbian specific getCPUTime implemetation
https://bugs.webkit.org/show_bug.cgi?id=34742

Default implementation doesn't work on Symbian devices.
This change adds a proper implementation by
asking thread execution time from the current thread.

  • runtime/TimeoutChecker.cpp: (JSC::getCPUTime):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/TimeoutChecker.cpp

    r53926 r55296  
    8585   
    8686    return userTime.fileTimeAsLong / 10000 + kernelTime.fileTimeAsLong / 10000;
     87#elif OS(SYMBIAN)
     88    RThread current;
     89    TTimeIntervalMicroSeconds cpuTime;
     90
     91    TInt err = current.GetCpuTime(cpuTime);
     92    ASSERT_WITH_MESSAGE(err == KErrNone, "GetCpuTime failed with %d", err);
     93    return cpuTime.Int64() / 1000;
    8794#elif PLATFORM(BREWMP)
    8895    // This function returns a continuously and linearly increasing millisecond
Note: See TracChangeset for help on using the changeset viewer.