From d4eaee390db2fefd4564b6054d8d066c437d8cff Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 6 Apr 2018 11:36:04 -0700 Subject: lib: move atomic.hpp and system_time.hpp to uhdlib --- host/lib/include/uhdlib/utils/system_time.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 host/lib/include/uhdlib/utils/system_time.hpp (limited to 'host/lib/include/uhdlib/utils/system_time.hpp') diff --git a/host/lib/include/uhdlib/utils/system_time.hpp b/host/lib/include/uhdlib/utils/system_time.hpp new file mode 100644 index 000000000..30cd5a673 --- /dev/null +++ b/host/lib/include/uhdlib/utils/system_time.hpp @@ -0,0 +1,18 @@ +// +// Copyright 2017 Ettus Research (National Instruments Corp.) +// +// SPDX-License-Identifier: GPL-3.0+ +// + +#include + +namespace uhd { + + /*! + * Get the system time in time_spec_t format. + * Uses the highest precision clock available. + * \return the system time as a time_spec_t + */ + time_spec_t get_system_time(void); + +}; /* namespace uhd */ -- cgit v1.2.3