| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef NET_QUIC_PLATFORM_IMPL_QUIC_SLEEP_IMPL_H_ |
| #define NET_QUIC_PLATFORM_IMPL_QUIC_SLEEP_IMPL_H_ |
| #include "base/threading/platform_thread.h" |
| #include "base/time/time.h" |
| #include "net/third_party/quiche/src/quic/core/quic_time.h" |
| inline void QuicSleepImpl(QuicTime::Delta duration) { |
| base::PlatformThread::Sleep(base::Milliseconds(duration.ToMilliseconds())); |
| #endif // NET_QUIC_PLATFORM_IMPL_QUIC_SLEEP_IMPL_H_ |