sessiond: main.cpp: iterate on list using list_iteration_adapter
[lttng-tools.git] / clock.cpp
... / ...
CommitLineData
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
11int 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;
21}
This page took 0.023176 seconds and 5 git commands to generate.