Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / content / common / inter_process_time_ticks_converter.cc
index de3fb13..e0c12e2 100644 (file)
@@ -72,4 +72,13 @@ int64 InterProcessTimeTicksConverter::Convert(int64 value) const {
   return numerator_ * value / denominator_;
 }
 
+bool InterProcessTimeTicksConverter::IsSkewAdditiveForMetrics() const {
+  return numerator_ == 1 && denominator_ == 1;
+}
+
+base::TimeDelta InterProcessTimeTicksConverter::GetSkewForMetrics() const {
+  return base::TimeTicks::FromInternalValue(remote_lower_bound_) -
+      base::TimeTicks::FromInternalValue(local_base_time_);
+}
+
 }  // namespace content