13 lines
283 B
Python
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 |