tests: Automatically time TAP tests
[lttng-tools.git] / tests / utils / tap / clock.cpp
CommitLineData
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
11int 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}
This page took 0.02259 seconds and 4 git commands to generate.