summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/WebCore/page/Performance.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/WebCore/page/Performance.cpp b/Source/WebCore/page/Performance.cpp
index edc4f9153..72b73b16d 100644
--- a/Source/WebCore/page/Performance.cpp
+++ b/Source/WebCore/page/Performance.cpp
@@ -245,7 +245,9 @@ void Performance::webkitClearMeasures(const String& measureName)
double Performance::now() const
{
- return 1000.0 * (WTF::monotonicallyIncreasingTime() - m_referenceTime);
+ double nowSeconds = WTF::monotonicallyIncreasingTime() - m_referenceTime;
+ const double resolutionSeconds = 0.000005;
+ return 1000.0 * floor(nowSeconds / resolutionSeconds) * resolutionSeconds;
}
} // namespace WebCore