using find api/ -name "*.h" -o -name "*.cc" | grep -v priority.h | xargs tools_webrtc/iwyu/apply-include-cleaner followed by tools_webrtc/gn_check_autofix.py -C out/Default/ and git cl format Manual changes: - api/test/compile_all_headers.cc: add IWYU keep pragma - api/video/nv12_buffer.cc: fix include part of libyuv/convert_from.h - DEPS changes priority.h is excluded as it is currently a header-only target. Will be fixed as a follow-up. A generated histogram.pb.h is included from api/test/metrics/chrome_perf_dashboard_metrics_exporter_test.cc since it is not directly exported by catapult. BUG=webrtc:42226242 Change-Id: Idce13d892c61ae71bf4f39bd5ffa4638a3d7f8fe Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/382120 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Evan Shrubsole <eshr@webrtc.org> Commit-Queue: Philipp Hancke <phancke@meta.com> Cr-Commit-Position: refs/heads/main@{#44374}
28 lines
888 B
C++
28 lines
888 B
C++
/*
|
|
* Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include "api/neteq/tick_timer.h"
|
|
|
|
#include <cstdint>
|
|
|
|
namespace webrtc {
|
|
|
|
TickTimer::Stopwatch::Stopwatch(const TickTimer& ticktimer)
|
|
: ticktimer_(ticktimer), starttick_(ticktimer.ticks()) {}
|
|
|
|
TickTimer::Countdown::Countdown(const TickTimer& ticktimer,
|
|
uint64_t ticks_to_count)
|
|
: stopwatch_(ticktimer.GetNewStopwatch()),
|
|
ticks_to_count_(ticks_to_count) {}
|
|
|
|
TickTimer::Countdown::~Countdown() = default;
|
|
|
|
} // namespace webrtc
|