| 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
|
|
|
|
|