From 8d4a68a3c5c2910f7868a54847e47e813664621b Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 16 Jan 2018 12:05:37 +0100 Subject: Show seconds and PPS in OutputFile metadata --- src/OutputFile.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/OutputFile.cpp') diff --git a/src/OutputFile.cpp b/src/OutputFile.cpp index f5a1997..46a9ec9 100644 --- a/src/OutputFile.cpp +++ b/src/OutputFile.cpp @@ -77,10 +77,12 @@ meta_vec_t OutputFile::process_metadata(const meta_vec_t& metadataIn) ss << " FCT=" << md.ts->fct << " FP=" << (int)md.ts->fp; if (md.ts->timestamp_valid) { - ss << " TS=" << md.ts->timestamp_sec << ";"; + ss << " TS=" << md.ts->timestamp_sec << " + " << + std::fixed + << (double)md.ts->timestamp_pps / 163840000.0 << ";"; } else { - ss << " No TS;"; + ss << " TS invalid;"; } } else { -- cgit v1.2.3