blob: 125af37d8775dfe36c2e6ee42711d113c38a1ff0 [file] [log] [blame]
#ifndef QUICHE_COMMON_PLATFORM_DEFAULT_QUICHE_PLATFORM_IMPL_QUICHE_SLEEP_IMPL_H_
#define QUICHE_COMMON_PLATFORM_DEFAULT_QUICHE_PLATFORM_IMPL_QUICHE_SLEEP_IMPL_H_
#include "quic/core/quic_time.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"
#include "absl/time/clock.h"
#include "absl/time/time.h"
#pragma clang diagnostic pop
namespace quic {
inline void QuicSleepImpl(QuicTime::Delta duration) {
absl::SleepFor(absl::Microseconds(duration.ToMicroseconds()));
}
} // namespace quic
#endif // QUICHE_COMMON_PLATFORM_DEFAULT_QUICHE_PLATFORM_IMPL_QUICHE_SLEEP_IMPL_H_