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

Side by Side Diff: base/timer/hi_res_timer_manager_posix.cc

Issue 2951413003: Add UMA for High Resolution Timer Usage (Closed)
Patch Set: Removed NaCl changes Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « base/timer/hi_res_timer_manager.h ('k') | base/timer/hi_res_timer_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/timer/hi_res_timer_manager.h" 5 #include "base/timer/hi_res_timer_manager.h"
6 6
7 // On POSIX we don't need to do anything special with the system timer. 7 // On POSIX we don't need to do anything special with the system timer.
8 8
9 namespace base { 9 namespace base {
10 10
11 HighResolutionTimerManager::HighResolutionTimerManager() 11 HighResolutionTimerManager::HighResolutionTimerManager()
12 : hi_res_clock_available_(false) { 12 : hi_res_clock_available_(false) {
13 } 13 }
14 14
15 HighResolutionTimerManager::~HighResolutionTimerManager() { 15 HighResolutionTimerManager::~HighResolutionTimerManager() {
16 } 16 }
17 17
18 void HighResolutionTimerManager::OnPowerStateChange(bool on_battery_power) { 18 void HighResolutionTimerManager::OnPowerStateChange(bool on_battery_power) {
19 } 19 }
20 20
21 void HighResolutionTimerManager::OnSuspend() {}
22
23 void HighResolutionTimerManager::OnResume() {}
24
21 void HighResolutionTimerManager::UseHiResClock(bool use) { 25 void HighResolutionTimerManager::UseHiResClock(bool use) {
22 } 26 }
23 27
24 } // namespace base 28 } // namespace base
OLDNEW
« no previous file with comments | « base/timer/hi_res_timer_manager.h ('k') | base/timer/hi_res_timer_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698