(sort of) deterministic timing in Python
by John Fisher other posts by this author
Aug 13 2007 4:28PM messages near this date
Problem with Thread.join()
|
chmod g+ Equivalent
I am working on a framework for data acquisition in Python 2.5, am
trying to get a structure going more like this:
mark start time
start event
event finishes
count time until next interval
start second eventâ?¦
rather than this:
start event
event finishes
sleep for interval
start second event
Do you see the difference? I get a true fixed interval from the first,
including the time to accomplish the event task(s). In the second case,
the sleep just gets tacked on at the end of the events, not very
deterministic (timing-wise).
So how do I accomplish this in Python with a minimum of labour?
Thanks for any light you can shed on my darkness...
wave_man
--
http://mail.python.org/mailman/listinfo/python-list
|