Commit 5f572428 authored by Sebastien Petitdemange's avatar Sebastien Petitdemange Committed by Sebastien Petitdemange
Browse files

timer: adjust sleep time

parent 9c8a1e63
......@@ -45,11 +45,13 @@ class SoftwareTimerMaster(AcquisitionMaster):
if self._nb_point > 0 and self.sleep_time:
gevent.sleep(self.sleep_time)
start_trigger = time.time()
dispatcher.send("new_data",self,
{"channel_data":{'timestamp':numpy.double(time.time())}})
self.trigger_slaves()
gevent.sleep(self.count_time)
elapsed_trigger = time.time()-start_trigger
gevent.sleep(self.count_time - elapsed_trigger)
def stop(self):
pass
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment