Changeset 53926 in webkit
- Timestamp:
- Jan 27, 2010 5:34:24 AM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r53922 r53926 1 2010-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 1 15 2010-01-27 Kwang Yul Seo <skyul@company100.net> 2 16 -
trunk/JavaScriptCore/runtime/TimeoutChecker.cpp
r52791 r53926 42 42 #endif 43 43 44 #if PLATFORM(BREWMP) 45 #include <AEEStdLib.h> 46 #endif 47 44 48 using namespace std; 45 49 … … 81 85 82 86 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(); 83 92 #else 84 93 // FIXME: We should return the time the current thread has spent executing.
Note: See TracChangeset
for help on using the changeset viewer.