1 //===-- Definition of struct timespec -------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef __LLVM_LIBC_TYPES_TIMESPEC_H__
10 #define __LLVM_LIBC_TYPES_TIMESPEC_H__
12 #include <llvm-libc-types/time_t.h>
15 time_t tv_sec
; /* Seconds. */
16 /* TODO: BIG_ENDIAN may require padding. */
17 long tv_nsec
; /* Nanoseconds. */
20 #endif // __LLVM_LIBC_TYPES_TIMESPEC_H__