added potential method for timer

This commit is contained in:
Brightbites
2026-02-25 04:45:05 +00:00
parent 9f8d209175
commit 0750fda030
2 changed files with 49 additions and 45 deletions

View File

@@ -62,25 +62,11 @@ def pullSpreedsheet(inputCol, inputRow, link):
print(f"[ERROR] Failed to fetch Go/No-Go from sheet: {e}")
return "N/A"
def countdownTime(countTime, onHold):
TimeNow = countTime
while True:
while not onHold:
t1 = monotonic()
TimeNow = TimeNow - 1
if TimeNow <= 0: # are we counting up?
countUp = True
else: countUp = False
yield(abs(TimeNow), countUp)
t2 = monotonic()
sleep(1.0 - (t2 - t1)) # sleep till next seccond
HoldTime = 0
while onHold:
t1 = monotonic()
HoldTime = HoldTime + 1
yield(HoldTime, True)
t2 = monotonic()
sleep(1.0 - (t2 - t1)) # sleep till next seccond
def countTime(timeNow):
pass
def holdTime(timeNow):
pass
def convertEpoch(inputTime, isDate):