diff options
Diffstat (limited to 'host/lib/utils/system_time.cpp')
-rw-r--r-- | host/lib/utils/system_time.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/utils/system_time.cpp b/host/lib/utils/system_time.cpp index 71fcd3fff..6693a38d4 100644 --- a/host/lib/utils/system_time.cpp +++ b/host/lib/utils/system_time.cpp @@ -9,8 +9,9 @@ uhd::time_spec_t uhd::get_system_time(void) { - const auto now = std::chrono::steady_clock::now().time_since_epoch(); + const auto now = std::chrono::steady_clock::now().time_since_epoch(); const auto seconds = std::chrono::duration_cast<std::chrono::seconds>(now); - const auto nanoseconds = std::chrono::duration_cast<std::chrono::nanoseconds>(now-seconds); + const auto nanoseconds = + std::chrono::duration_cast<std::chrono::nanoseconds>(now - seconds); return uhd::time_spec_t(seconds.count(), nanoseconds.count(), 1e9); } |