blob: 14466f0ebbf3621132d144986126443ea2778544 [file] [log] [blame]
// 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"
namespace quic {
inline void QuicSleepImpl(QuicTime::Delta duration) {
base::PlatformThread::Sleep(base::Milliseconds(duration.ToMilliseconds()));
}
} // namespace quic
#endif // NET_QUIC_PLATFORM_IMPL_QUIC_SLEEP_IMPL_H_