diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-28 15:28:34 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-28 13:54:51 +0000 |
commit | 2a19c63448c84c1805fb1a585c3651318bb86ca7 (patch) | |
tree | eb17888e8531aa6ee5e85721bd553b832a7e5156 /chromium/third_party/blink/renderer/platform/histogram.h | |
parent | b014812705fc80bff0a5c120dfcef88f349816dc (diff) | |
download | qtwebengine-chromium-2a19c63448c84c1805fb1a585c3651318bb86ca7.tar.gz |
BASELINE: Update Chromium to 69.0.3497.70
Change-Id: I2b7b56e4e7a8b26656930def0d4575dc32b900a0
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/histogram.h')
-rw-r--r-- | chromium/third_party/blink/renderer/platform/histogram.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/platform/histogram.h b/chromium/third_party/blink/renderer/platform/histogram.h index fe3c09c920d..b380122df87 100644 --- a/chromium/third_party/blink/renderer/platform/histogram.h +++ b/chromium/third_party/blink/renderer/platform/histogram.h @@ -26,6 +26,7 @@ class PLATFORM_EXPORT CustomCountHistogram { base::HistogramBase::Sample max, int32_t bucket_count); void Count(base::HistogramBase::Sample); + void CountMicroseconds(base::TimeDelta); protected: explicit CustomCountHistogram(base::HistogramBase*); @@ -69,7 +70,7 @@ class PLATFORM_EXPORT ScopedUsHistogramTimer { : start_time_(CurrentTimeTicks()), counter_(counter) {} ~ScopedUsHistogramTimer() { - counter_.Count((CurrentTimeTicks() - start_time_).InMicroseconds()); + counter_.CountMicroseconds(CurrentTimeTicks() - start_time_); } private: |