You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,20 @@
1
1
# CloCXX
2
2
A header only C++ library with `std::chrono` compatible clocks satisfying the _TrivialClock_ requirement
3
3
4
-
#### Building the `clocxx.hpp` header
5
-
```
4
+
#### Building the `clocxx.hpp` header in-source
5
+
```bash
6
6
make
7
7
```
8
8
9
+
#### Building and installing the `clocxx.hpp` header out-of-source
10
+
11
+
This will build `clocxx.hpp` and install it in `~/.local/include`:
12
+
```bash
13
+
cmake --install-prefix ~/.local -S . -B build
14
+
cmake --build build
15
+
cmake --install build
16
+
```
17
+
9
18
#### About
10
19
11
20
`CloCXX` comes with a file with recipes named `seen_clockid_t`. This contains the `clockid_t` macro name, a `bool` describing if the clock is steady or not and finally a description of the clock. When building the `clocxx.hpp` header, each recipe will be checked individually and only working clock definitions will be included in the generated header file. In addition to the `typedef`s required to be a _TrivialClock_, each `lyn::chrono` clock comes with two additional constants:
0 commit comments