From 486f27bf0e4e1511d1049d42cc50df51eec5a50d Mon Sep 17 00:00:00 2001 From: ClF3 Date: Mon, 22 Jan 2024 16:25:58 +0800 Subject: [PATCH] added sleep --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 666c071..a848386 100644 --- a/main.py +++ b/main.py @@ -2,6 +2,7 @@ import cv2 import numpy as np import urllib.request from datetime import datetime +import time recent=[] history=[] width=720 @@ -57,6 +58,7 @@ if __name__=="__main__": while True: if datetime.now().second==0 and datetime.now().minute!=lastminute: # if True: + time.sleep(0.5) (code,delay)=testConnect("https://blog.clf3.org") print(code,end=" ") if code/100<=3: