| Index: base/time/time.h
|
| diff --git a/base/time/time.h b/base/time/time.h
|
| index eba61455d2845195d250923d8b39893d5f6727e4..5d7033af1874e62dd847abf2dc6d739ef757dc5e 100644
|
| --- a/base/time/time.h
|
| +++ b/base/time/time.h
|
| @@ -572,6 +572,17 @@ class BASE_EXPORT TimeTicks {
|
| // Returns true if the high resolution clock is working on this system.
|
| // This is only for testing.
|
| static bool IsHighResClockWorking();
|
| +
|
| + // Enable high resolution time for TimeTicks::Now(). This function will
|
| + // test for the availability of a working implementation of
|
| + // QueryPerformanceCounter(). If one is not available, this function does
|
| + // nothing and the resolution of Now() remains 1ms. Otherwise, all future
|
| + // calls to TimeTicks::Now() will have the higher resolution provided by QPC.
|
| + // Returns true if high resolution time was successfully enabled.
|
| + static bool SetNowIsHighResNowIfSupported();
|
| +
|
| + // Returns a time value that is NOT rollover protected.
|
| + static TimeTicks UnprotectedNow();
|
| #endif
|
|
|
| // Returns true if this object has not been initialized.
|
|
|