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

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: Fix AutoDrainedPool ctor and ThreadSpecificThreadExit exports 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
« no previous file with comments | « Source/wtf/CryptographicallyRandomNumber.cpp ('k') | Source/wtf/CurrentTime.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/CurrentTime.h
diff --git a/Source/wtf/CurrentTime.h b/Source/wtf/CurrentTime.h
index 0c4af8446891405eadd9d1c76db2b8e29f470e39..c41bae6a4a852d3d4c3e21c1ced9be290a753f4a 100644
--- a/Source/wtf/CurrentTime.h
+++ b/Source/wtf/CurrentTime.h
@@ -34,12 +34,14 @@
#include <time.h>
+#include "wtf/WTFExport.h"
+
namespace WTF {
// 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 +51,12 @@ 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();
+
+typedef double(*TimeFunction)(void);
+void setCurrentTimeFunction(TimeFunction);
+void setMonotonicallyIncreasingTimeFunction(TimeFunction);
+
} // namespace WTF
« no previous file with comments | « Source/wtf/CryptographicallyRandomNumber.cpp ('k') | Source/wtf/CurrentTime.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698