diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
commit | 635860845790a19bf50bbc51ba8fb66a96dde068 (patch) | |
tree | ef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebCore/platform/android/SystemTimeAndroid.cpp | |
parent | 8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff) | |
download | external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2 |
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebCore/platform/android/SystemTimeAndroid.cpp')
-rw-r--r-- | WebCore/platform/android/SystemTimeAndroid.cpp | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/WebCore/platform/android/SystemTimeAndroid.cpp b/WebCore/platform/android/SystemTimeAndroid.cpp index 9ac32dc..a9c862a 100644 --- a/WebCore/platform/android/SystemTimeAndroid.cpp +++ b/WebCore/platform/android/SystemTimeAndroid.cpp @@ -26,34 +26,12 @@ #include "config.h" #include "SystemTime.h" -#include <sys/time.h> - namespace WebCore { -double currentTime() -{ - struct timeval tv; - - gettimeofday(&tv, (struct timezone *) NULL); - double now = tv.tv_sec + (tv.tv_usec / 1000000.0); - - return now; -} - -uint32_t get_thread_msec() +float userIdleTime() { -#if defined(HAVE_POSIX_CLOCKS) - struct timespec tm; - - clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tm); - - return tm.tv_sec * 1000LL + tm.tv_nsec / 1000000; -#else - struct timeval tv; - - gettimeofday(&tv, NULL); - return tv.tv_sec * 1000LL + tv.tv_usec / 1000; -#endif + // Needed for PageCache, which we currently have disabled. + return 0.0F; } } // namespace WebCore |