Apr-21-2021, 11:22 AM
time.perf_counter() is the current time in seconds, with the decimal part out to the accuracy of the system
start is the time everything started
division is which "tick" you are on - 60 seconds times 30 ticks per second = 1800 ticks So, division/30 is the amount to add to start to get the time at which the "gate opens"
BTW - can eliminate the end_time line - that was in there when I was going a different path.
start is the time everything started
division is which "tick" you are on - 60 seconds times 30 ticks per second = 1800 ticks So, division/30 is the amount to add to start to get the time at which the "gate opens"
BTW - can eliminate the end_time line - that was in there when I was going a different path.