OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 COMPONENTS_CRONET_ANDROID_CRONET_METRICS_UTIL_H_ | |
6 #define COMPONENTS_CRONET_ANDROID_CRONET_METRICS_UTIL_H_ | |
7 | |
8 #include <stdint.h> | |
9 | |
10 #include "base/time/time.h" | |
11 | |
12 namespace cronet { | |
13 | |
14 class MetricsUtil { | |
mgersh
2016/10/05 19:36:47
This should be a namespace instead of a class: htt
xunjieli
2016/10/06 03:51:47
Done. Good to know!
| |
15 public: | |
16 // Converts timing metrics stored as TimeTicks into the format expected by the | |
17 // Java layer: ms since Unix epoch, or -1 for null | |
18 static int64_t ConvertTime(const base::TimeTicks& ticks, | |
19 const base::TimeTicks& start_ticks, | |
20 const base::Time& start_time); | |
21 }; | |
22 | |
23 } // namespace cronet | |
24 | |
25 #endif // COMPONENTS_CRONET_ANDROID_CRONET_METRICS_UTIL_H_ | |
OLD | NEW |