diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-03-05 23:29:57 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-03-05 23:29:57 +0100 |
commit | 0957760c42cc04d9c295b649b039015186b25609 (patch) | |
tree | d142ad6434b459e79359a2ad3121a7f6f68a77f0 /src/DabMultiplexer.cpp | |
parent | fd8748e1a9b49f2c6ca83247db97d6bb30a48ef6 (diff) | |
download | dabmux-0957760c42cc04d9c295b649b039015186b25609.tar.gz dabmux-0957760c42cc04d9c295b649b039015186b25609.tar.bz2 dabmux-0957760c42cc04d9c295b649b039015186b25609.zip |
Replace clock_gettime with std::chrono for EDI
Diffstat (limited to 'src/DabMultiplexer.cpp')
-rw-r--r-- | src/DabMultiplexer.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/DabMultiplexer.cpp b/src/DabMultiplexer.cpp index e60feaa..8002fe1 100644 --- a/src/DabMultiplexer.cpp +++ b/src/DabMultiplexer.cpp @@ -3,7 +3,7 @@ 2011, 2012 Her Majesty the Queen in Right of Canada (Communications Research Center Canada) - Copyright (C) 2015 + Copyright (C) 2016 Matthias P. Braendli, matthias.braendli@mpb.li */ /* @@ -30,7 +30,6 @@ #include "fig/FIG.h" using namespace std; -using namespace boost; static const unsigned char Padding_FIB[] = { 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -216,9 +215,7 @@ void DabMultiplexer::prepare() gettimeofday(&mnsc_time, NULL); #if HAVE_OUTPUT_EDI - if (clock_gettime(CLOCK_REALTIME, &edi_time)) { - throw std::runtime_error("Setting eti_time with clock_gettime failed"); - } + edi_time = chrono::system_clock::now(); // Try to load offset once @@ -1788,7 +1785,7 @@ void DabMultiplexer::mux_frame(std::vector<std::shared_ptr<DabOutput> >& outputs MNSC_increment_time = true; // Immediately update edi time - edi_time.tv_sec++; + edi_time += chrono::seconds(1); } |