1 //===-- Definition of macros from time.h ---------------------------------===//
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_MACROS_LINUX_TIME_MACROS_H
10 #define LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H
13 #define CLOCK_REALTIME 0
14 #define CLOCK_MONOTONIC 1
15 #define CLOCK_PROCESS_CPUTIME_ID 2
16 #define CLOCK_THREAD_CPUTIME_ID 3
17 #define CLOCK_MONOTONIC_RAW 4
18 #define CLOCK_REALTIME_COARSE 5
19 #define CLOCK_MONOTONIC_COARSE 6
20 #define CLOCK_BOOTTIME 7
21 #define CLOCK_REALTIME_ALARM 8
22 #define CLOCK_BOOTTIME_ALARM 9
24 #define CLOCKS_PER_SEC 1000000
26 #endif // LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H