added sleep

This commit is contained in:
ClF3 2024-01-22 16:25:58 +08:00
parent 7b1fd6679a
commit 486f27bf0e
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import cv2
import numpy as np import numpy as np
import urllib.request import urllib.request
from datetime import datetime from datetime import datetime
import time
recent=[] recent=[]
history=[] history=[]
width=720 width=720
@ -57,6 +58,7 @@ if __name__=="__main__":
while True: while True:
if datetime.now().second==0 and datetime.now().minute!=lastminute: if datetime.now().second==0 and datetime.now().minute!=lastminute:
# if True: # if True:
time.sleep(0.5)
(code,delay)=testConnect("https://blog.clf3.org") (code,delay)=testConnect("https://blog.clf3.org")
print(code,end=" ") print(code,end=" ")
if code/100<=3: if code/100<=3: