Adding rate control for ConditionalRun function

Devices implementing the conditional run method are typically source
devices and a rate control can be desireable. New option '--rate' with
a float number argument in Hz can be used to configure rate control.
By default it is switched off.
This commit is contained in:
Matthias Richter
2017-11-14 18:52:20 +01:00
committed by Mohammad Al-Turany
parent 7429f7a326
commit 9b2b1cf9f1
4 changed files with 47 additions and 48 deletions

View File

@@ -535,6 +535,8 @@ class FairMQDevice : public FairMQStateMachine
bool fExternalConfig;
const fair::mq::tools::Version fVersion;
float fRate;
size_t fLastTime;
};
#endif /* FAIRMQDEVICE_H_ */