1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 06:54:39 -04:00

Switch FileRecord timestamp resolution to milliseconds

This commit is contained in:
Andreas Baulig
2021-08-04 13:38:42 +00:00
parent 14e75232df
commit e8a8ef6f3d
4 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -183,8 +183,8 @@ void FileRecord::writeHeader()
Header header;
header.sampleRate = m_sampleRate;
header.centerFrequency = m_centerFrequency;
std::time_t ts = time(0);
header.startTimeStamp = ts + (m_msShift / 1000);
qint64 ts = QDateTime::currentMSecsSinceEpoch();
header.startTimeStamp = (quint64)(ts + m_msShift);
header.sampleSize = SDR_RX_SAMP_SZ;
header.filler = 0;