xref: /llvm-project/libc/src/time/clock_getres.h (revision 9a06fb7e5c00d1379688645c2c28955664016278)
1*9a06fb7eSSchrodinger ZHU Yifan //===-- Implementation header of clock_getres -------------------*- C++ -*-===//
2*9a06fb7eSSchrodinger ZHU Yifan //
3*9a06fb7eSSchrodinger ZHU Yifan // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*9a06fb7eSSchrodinger ZHU Yifan // See https://llvm.org/LICENSE.txt for license information.
5*9a06fb7eSSchrodinger ZHU Yifan // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*9a06fb7eSSchrodinger ZHU Yifan //
7*9a06fb7eSSchrodinger ZHU Yifan //===----------------------------------------------------------------------===//
8*9a06fb7eSSchrodinger ZHU Yifan #ifndef LLVM_LIBC_SRC_TIME_CLOCK_GETRES_H
9*9a06fb7eSSchrodinger ZHU Yifan #define LLVM_LIBC_SRC_TIME_CLOCK_GETRES_H
10*9a06fb7eSSchrodinger ZHU Yifan 
11*9a06fb7eSSchrodinger ZHU Yifan #include "hdr/types/clockid_t.h"
12*9a06fb7eSSchrodinger ZHU Yifan #include "hdr/types/struct_timespec.h"
13*9a06fb7eSSchrodinger ZHU Yifan #include "src/__support/macros/config.h"
14*9a06fb7eSSchrodinger ZHU Yifan 
15*9a06fb7eSSchrodinger ZHU Yifan namespace LIBC_NAMESPACE_DECL {
16*9a06fb7eSSchrodinger ZHU Yifan 
17*9a06fb7eSSchrodinger ZHU Yifan int clock_getres(clockid_t clockid, timespec *tp);
18*9a06fb7eSSchrodinger ZHU Yifan 
19*9a06fb7eSSchrodinger ZHU Yifan } // namespace LIBC_NAMESPACE_DECL
20*9a06fb7eSSchrodinger ZHU Yifan 
21*9a06fb7eSSchrodinger ZHU Yifan #endif // LLVM_LIBC_SRC_TIME_CLOCK_GETRES_H
22