Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(979)

Unified Diff: Source/wtf/CurrentTime.h

Issue 15861022: Build WTF as dll in component build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/wtf/CurrentTime.h
diff --git a/Source/wtf/CurrentTime.h b/Source/wtf/CurrentTime.h
index 0c4af8446891405eadd9d1c76db2b8e29f470e39..61eab62192dba8ebe19aa157afea45b1f6b6abf5 100644
--- a/Source/wtf/CurrentTime.h
+++ b/Source/wtf/CurrentTime.h
@@ -34,12 +34,19 @@
#include <time.h>
+#include "wtf/WTFExport.h"
+
namespace WTF {
+typedef double(*TimeFunction)(void);
+
+WTF_EXPORT void setCurrentTimeFunction(TimeFunction);
+WTF_EXPORT void setMonotonicallyIncreasingTimeFunction(TimeFunction);
+
// Returns the current UTC time in seconds, counted from January 1, 1970.
// Precision varies depending on platform but is usually as good or better
// than a millisecond.
-double currentTime();
+WTF_EXPORT double currentTime();
// Same thing, in milliseconds.
inline double currentTimeMS()
@@ -49,7 +56,7 @@ inline double currentTimeMS()
// Provides a monotonically increasing time in seconds since an arbitrary point in the past.
// On unsupported platforms, this function only guarantees the result will be non-decreasing.
-double monotonicallyIncreasingTime();
+WTF_EXPORT double monotonicallyIncreasingTime();
} // namespace WTF

Powered by Google App Engine
This is Rietveld 408576698