diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-04-06 11:36:04 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-04-06 18:39:11 -0700 |
commit | d4eaee390db2fefd4564b6054d8d066c437d8cff (patch) | |
tree | a549bdb025674630ccff63d699a6ba63eab4d35f /host/lib/include/uhdlib/utils/system_time.hpp | |
parent | bf1d22ffe871c9b4293d87ff0f5abe7511dab00b (diff) | |
download | uhd-d4eaee390db2fefd4564b6054d8d066c437d8cff.tar.gz uhd-d4eaee390db2fefd4564b6054d8d066c437d8cff.tar.bz2 uhd-d4eaee390db2fefd4564b6054d8d066c437d8cff.zip |
lib: move atomic.hpp and system_time.hpp to uhdlib
Diffstat (limited to 'host/lib/include/uhdlib/utils/system_time.hpp')
-rw-r--r-- | host/lib/include/uhdlib/utils/system_time.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
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 <uhd/types/time_spec.hpp> + +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 */ |