timespec.h 515 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2019 Linaro Limited
  3. * Copyright (c) 2021 Nordic Semiconductor ASA
  4. *
  5. * SPDX-License-Identifier: Apache-2.0
  6. */
  7. #ifndef ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_SYS_TIMESPEC_H_
  8. #define ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_SYS_TIMESPEC_H_
  9. #include <sys/types.h>
  10. struct timespec {
  11. time_t tv_sec;
  12. long tv_nsec;
  13. };
  14. struct itimerspec {
  15. struct timespec it_interval; /* Timer interval */
  16. struct timespec it_value; /* Timer expiration */
  17. };
  18. #endif /* ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_SYS_TIMESPEC_H_ */