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 { |
mark a. foltz | cbdea4b | 2019-11-18 16:49:14 -0800 | [diff] [blame] | 13 | |
| 14 | struct timeval ToTimeval(const Clock::duration& timeout); |
| 15 | |
mark a. foltz | cbdea4b | 2019-11-18 16:49:14 -0800 | [diff] [blame] | 16 | } // namespace openscreen |
| 17 | |
| 18 | #endif // PLATFORM_IMPL_TIMEVAL_POSIX_H_ |