| Index: Source/core/timing/PerformanceBase.cpp
|
| diff --git a/Source/core/timing/PerformanceBase.cpp b/Source/core/timing/PerformanceBase.cpp
|
| index 59e29deb265334541ee8d8745f105481ffffc844..219f3f5b51331991db0f63fb8f2a52bb9ffdd724 100644
|
| --- a/Source/core/timing/PerformanceBase.cpp
|
| +++ b/Source/core/timing/PerformanceBase.cpp
|
| @@ -321,7 +321,9 @@ void PerformanceBase::clearMeasures(const String& measureName)
|
|
|
| double PerformanceBase::now() const
|
| {
|
| - return 1000.0 * (monotonicallyIncreasingTime() - m_timeOrigin);
|
| + double nowSeconds = monotonicallyIncreasingTime() - m_timeOrigin;
|
| + const double resolutionSeconds = 0.000005;
|
| + return 1000.0 * floor(nowSeconds / resolutionSeconds) * resolutionSeconds;
|
| }
|
|
|
| DEFINE_TRACE(PerformanceBase)
|
|
|