xref: /freebsd/contrib/llvm-project/libc/include/llvm-libc-macros/time-macros.h (revision bb722a7d0f1642bff6487f943ad0427799a6e5bf)
1 #ifndef LLVM_LIBC_MACROS_TIME_MACROS_H
2 #define LLVM_LIBC_MACROS_TIME_MACROS_H
3 
4 #if defined(__AMDGPU__) || defined(__NVPTX__)
5 #include "gpu/time-macros.h"
6 #elif defined(__linux__)
7 #include "linux/time-macros.h"
8 #elif defined(__ELF__)
9 #include "baremetal/time-macros.h"
10 #else
11 #define CLOCKS_PER_SEC 1000000
12 #endif
13 
14 #define CLK_TCK CLOCKS_PER_SEC
15 
16 #define TIME_UTC 1
17 #define TIME_MONOTONIC 2
18 #define TIME_ACTIVE 3
19 #define TIME_THREAD_ACTIVE 4
20 
21 #endif // LLVM_LIBC_MACROS_TIME_MACROS_H
22