• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_METRICS_TIME_TICKS_EXPERIMENT_WIN_H_
6 #define CHROME_BROWSER_METRICS_TIME_TICKS_EXPERIMENT_WIN_H_
7 
8 #include "build/build_config.h"
9 
10 #if defined(OS_WIN)
11 
12 namespace chrome {
13 
14 // Runs an experiment once per session upon successful upload of UMA. Determines
15 // if QueryPerformanceCounter() is safe to use generally on this system. Ensures
16 // that the resolution is better than 1ms, returns quickly, and is monotonically
17 // increasing. Records the results in UMA for the next upload.
18 void CollectTimeTicksStats();
19 
20 }  // namespace chrome
21 
22 #endif  // defined(OS_WIN)
23 
24 #endif  // CHROME_BROWSER_METRICS_TIME_TICKS_EXPERIMENT_WIN_H_
25