Files
ythdd/ythdd_globals.py
2024-09-25 12:22:14 +02:00

13 lines
283 B
Python

#!/usr/bin/python3
import time
global starttime, apiRequests, apiFailedRequests, outsideApiHits
#def init():
# starttime = int(time.time())
#def notImplemented(data):
# return 501, f"not recognised/implemented: {data[0]}", []
def getUptime():
return int(time.time()) - starttime