Posts: 4,563
Threads: 1,466
Joined: Sep 2016
if you write some code to wake up every second, it could accumulate the system delays and quickly be way off. what have you done to deal with this? back in my days of C programming, my code would calculate how long to wait, such as in nanoseconds. doing so in Python seems to work. is there a better way to do this in Python?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,563
Threads: 1,466
Joined: Sep 2016
Apr-13-2019, 11:29 PM
(This post was last modified: Apr-13-2019, 11:29 PM by Skaperen.)
the publish-subscribe pattern make sense and seems right. now to look through the choices and make sure they have reliable time-cycle publishers. time-cycle could be complex because so many cycle periods are possible, such as "every 35 seconds".
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,563
Threads: 1,466
Joined: Sep 2016
and the counter-timer should have a way to set a level-state interrupt.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.