Changeset 53926 in webkit


Ignore:
Timestamp:
Jan 27, 2010 5:34:24 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-27 Kwang Yul Seo <skyul@company100.net>

Reviewed by Eric Seidel.

[BREWMP] Port getCPUTime
https://bugs.webkit.org/show_bug.cgi?id=33572

Use GETUPTIMEMS which returns a continuously and
linearly increasing millisecond timer from the time the device
was powered on. This function is enough to implement getCPUTime.

  • runtime/TimeoutChecker.cpp: (JSC::getCPUTime):
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r53922 r53926  
     12010-01-27  Kwang Yul Seo  <skyul@company100.net>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [BREWMP] Port getCPUTime
     6        https://bugs.webkit.org/show_bug.cgi?id=33572
     7
     8        Use GETUPTIMEMS which returns a continuously and
     9        linearly increasing millisecond timer from the time the device
     10        was powered on. This function is enough to implement getCPUTime.
     11
     12        * runtime/TimeoutChecker.cpp:
     13        (JSC::getCPUTime):
     14
    1152010-01-27  Kwang Yul Seo  <skyul@company100.net>
    216
  • trunk/JavaScriptCore/runtime/TimeoutChecker.cpp

    r52791 r53926  
    4242#endif
    4343
     44#if PLATFORM(BREWMP)
     45#include <AEEStdLib.h>
     46#endif
     47
    4448using namespace std;
    4549
     
    8185   
    8286    return userTime.fileTimeAsLong / 10000 + kernelTime.fileTimeAsLong / 10000;
     87#elif PLATFORM(BREWMP)
     88    // This function returns a continuously and linearly increasing millisecond
     89    // timer from the time the device was powered on.
     90    // There is only one thread in BREW, so this is enough.
     91    return GETUPTIMEMS();
    8392#else
    8493    // FIXME: We should return the time the current thread has spent executing.
Note: See TracChangeset for help on using the changeset viewer.