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