From 2789be852e1cdb60ad6427eebab19706f9884145 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Mon, 6 Jul 2026 15:39:57 +0800 Subject: [PATCH] fix: add missing import --- module/device/method/ldopengl.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/module/device/method/ldopengl.py b/module/device/method/ldopengl.py index 25a07a2..a7a71bd 100644 --- a/module/device/method/ldopengl.py +++ b/module/device/method/ldopengl.py @@ -1,6 +1,7 @@ import ctypes import os import subprocess +import time import typing as t from dataclasses import dataclass from functools import wraps @@ -333,13 +334,3 @@ class LDOpenGL(Platform): image = cv2.flip(image, 0) cv2.cvtColor(image, cv2.COLOR_BGR2RGB, dst=image) return image - - -if __name__ == '__main__': - ld = LDOpenGLImpl('E:/ProgramFiles/LDPlayer9', instance_id=1) - for _ in range(5): - import time - - start = time.time() - ld.screenshot() - print(time.time() - start)