From 743e66a3469af27819bcd0e3e1694d2a4c523c6b Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 5 Mar 2016 23:44:31 +0100 Subject: Use std::chrono in ClockTAI --- src/ClockTAI.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/ClockTAI.h') diff --git a/src/ClockTAI.h b/src/ClockTAI.h index 027e6db..499fa56 100644 --- a/src/ClockTAI.h +++ b/src/ClockTAI.h @@ -37,9 +37,10 @@ #include #include #include -#include +#include -// EDI needs to know UTC-TAI, but doesn't need the CLOCK_TAI to be set +// EDI needs to know UTC-TAI, but doesn't need the CLOCK_TAI to be set. +// We can keep this code, maybe for future use #define SUPPORT_SETTING_CLOCK_TAI 0 /* Loads, parses and represents TAI-UTC offset information from the USNO bulletin */ @@ -65,7 +66,7 @@ class ClockTAI { int m_offset; std::stringstream m_bulletin; - struct timespec m_bulletin_download_time; + std::chrono::system_clock::time_point m_bulletin_download_time; // Load bulletin into m_bulletin, return 0 on success int download_tai_utc_bulletin(const char* url); -- cgit v1.2.3