diff options
Diffstat (limited to 'base/time.h')
-rw-r--r-- | base/time.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/base/time.h b/base/time.h index 8cd752a..33ab227 100644 --- a/base/time.h +++ b/base/time.h @@ -242,12 +242,9 @@ class Time { static Time FromFileTime(FILETIME ft); FILETIME ToFileTime() const; - // Monitor system power state and disable high resolution timer when we're - // on battery. See time_win.cc for more details. - static void StartSystemMonitorObserver(); - - // Enable high resolution timer unconditionally. Only for test code. - static void EnableHiResClockForTests(); + // Enable or disable Windows high resolution timer. For more details + // see comments in time_win.cc. Returns true on success. + static bool UseHighResolutionTimer(bool use); #endif // Converts an exploded structure representing either the local time or UTC |