xref: /llvm-project/libc/include/llvm-libc-macros/linux/time-macros.h (revision 330793c91d08e6ac60334e4813746db898b9407e)
1b49d626cSMichael Jones //===-- Definition of macros from time.h ---------------------------------===//
2b49d626cSMichael Jones //
3b49d626cSMichael Jones // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4b49d626cSMichael Jones // See https://llvm.org/LICENSE.txt for license information.
5b49d626cSMichael Jones // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6b49d626cSMichael Jones //
7b49d626cSMichael Jones //===----------------------------------------------------------------------===//
8b49d626cSMichael Jones 
9*330793c9SNick Desaulniers #ifndef LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H
10*330793c9SNick Desaulniers #define LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H
11b49d626cSMichael Jones 
12b49d626cSMichael Jones // clock type macros
13b49d626cSMichael Jones #define CLOCK_REALTIME 0
14b49d626cSMichael Jones #define CLOCK_MONOTONIC 1
15b49d626cSMichael Jones #define CLOCK_PROCESS_CPUTIME_ID 2
16b49d626cSMichael Jones #define CLOCK_THREAD_CPUTIME_ID 3
17b49d626cSMichael Jones #define CLOCK_MONOTONIC_RAW 4
18b49d626cSMichael Jones #define CLOCK_REALTIME_COARSE 5
19b49d626cSMichael Jones #define CLOCK_MONOTONIC_COARSE 6
20b49d626cSMichael Jones #define CLOCK_BOOTTIME 7
21b49d626cSMichael Jones #define CLOCK_REALTIME_ALARM 8
22b49d626cSMichael Jones #define CLOCK_BOOTTIME_ALARM 9
23b49d626cSMichael Jones 
2422ea0e5dSSiva Chandra Reddy #define CLOCKS_PER_SEC 1000000
2522ea0e5dSSiva Chandra Reddy 
26*330793c9SNick Desaulniers #endif // LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H
27