Title: [92859] trunk/Source/_javascript_Core
- Revision
- 92859
- Author
- [email protected]
- Date
- 2011-08-11 09:48:59 -0700 (Thu, 11 Aug 2011)
Log Message
Implementation of monotonically increasing clock on GTK
https://bugs.webkit.org/show_bug.cgi?id=62175
Patch by Devdatta Deshpande <[email protected]> on 2011-08-11
Reviewed by Martin Robinson.
* wtf/CurrentTime.cpp:
(WTF::monotonicallyIncreasingTime):
The default implementation of monotonicallyIncreasingTime only
guarantees the result to be non-decreasing.
If the system time is changed to past then default implementation will
still fail and WebCore timers will not fire.
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (92858 => 92859)
--- trunk/Source/_javascript_Core/ChangeLog 2011-08-11 16:47:30 UTC (rev 92858)
+++ trunk/Source/_javascript_Core/ChangeLog 2011-08-11 16:48:59 UTC (rev 92859)
@@ -1,3 +1,17 @@
+2011-08-11 Devdatta Deshpande <[email protected]>
+
+ Implementation of monotonically increasing clock on GTK
+ https://bugs.webkit.org/show_bug.cgi?id=62175
+
+ Reviewed by Martin Robinson.
+
+ * wtf/CurrentTime.cpp:
+ (WTF::monotonicallyIncreasingTime):
+ The default implementation of monotonicallyIncreasingTime only
+ guarantees the result to be non-decreasing.
+ If the system time is changed to past then default implementation will
+ still fail and WebCore timers will not fire.
+
2011-08-10 Geoffrey Garen <[email protected]>
Removed some incorrect code that was dead.
Modified: trunk/Source/_javascript_Core/wtf/CurrentTime.cpp (92858 => 92859)
--- trunk/Source/_javascript_Core/wtf/CurrentTime.cpp 2011-08-11 16:47:30 UTC (rev 92858)
+++ trunk/Source/_javascript_Core/wtf/CurrentTime.cpp 2011-08-11 16:48:59 UTC (rev 92859)
@@ -326,6 +326,13 @@
return ecore_time_get();
}
+#elif PLATFORM(GTK)
+
+double monotonicallyIncreasingTime()
+{
+ return static_cast<double>(g_get_monotonic_time() / 1000000.0);
+}
+
#else
double monotonicallyIncreasingTime()
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes