mark a. foltz | cbdea4b | 2019-11-18 16:49:14 -0800 | [diff] [blame^] | 1 | // Copyright 2019 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef PLATFORM_IMPL_TIMEVAL_POSIX_H_ |
| 6 | #define PLATFORM_IMPL_TIMEVAL_POSIX_H_ |
| 7 | |
| 8 | #include <sys/time.h> // timeval |
| 9 | |
| 10 | #include "platform/api/time.h" |
| 11 | |
| 12 | namespace openscreen { |
| 13 | namespace platform { |
| 14 | |
| 15 | struct timeval ToTimeval(const Clock::duration& timeout); |
| 16 | |
| 17 | } // namespace platform |
| 18 | } // namespace openscreen |
| 19 | |
| 20 | #endif // PLATFORM_IMPL_TIMEVAL_POSIX_H_ |