Return n_lost_pulses in sync from receiver

In order to have proper statistics we need to return the
number of lost pulses from the receiver. We cannot just count
the gap in pulse_id as the beam might be operated at
different frequencies.
This commit is contained in:
2021-01-15 10:59:43 +01:00
parent 0cf973802d
commit 2937326dbf
2 changed files with 19 additions and 6 deletions
+6 -1
View File
@@ -8,6 +8,11 @@
#include "formats.hpp"
struct PulseAndSync {
const uint64_t pulse_id;
const uint32_t n_lost_pulses;
};
class ZmqPulseSyncReceiver {
void* ctx_;
@@ -22,7 +27,7 @@ public:
const int n_modules);
~ZmqPulseSyncReceiver();
uint64_t get_next_pulse_id() const;
PulseAndSync get_next_pulse_id() const;
};