Commit | Line | Data |
---|---|---|
2a69bf14 KS |
1 | /** |
2 | * Copyright (C) 2023 Kienan Stewart <kstewart@efficios.com> | |
3 | * | |
4 | * SPDX-License-Identifier: LGPL-2.1-only | |
5 | */ | |
6 | ||
7 | #include "common/time.hpp" | |
8 | ||
9 | #include <stdio.h> | |
10 | ||
11927a78 JG |
11 | int main() |
12 | { | |
13 | struct timespec t; | |
14 | const auto ret = lttng_clock_gettime(CLOCK_MONOTONIC, &t); | |
15 | ||
16 | if (ret == 0) { | |
17 | printf("%ld.%09ld\n", t.tv_sec, t.tv_nsec); | |
18 | } | |
19 | ||
20 | return ret; | |
2a69bf14 | 21 | } |