Commit | Line | Data |
---|---|---|
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 | ||
11 | int main() { | |
12 | struct timespec t; | |
13 | int ret = lttng_clock_gettime(CLOCK_MONOTONIC, &t); | |
14 | if (ret == 0) { | |
15 | printf("%ld.%09ld\n", t.tv_sec, t.tv_nsec); | |
16 | } | |
17 | return ret; | |
18 | } |