From 67a5e3d825fde17b7b00906ce42b0bd8cafebc4e Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 18 八月 2022 18:22:14 +0800 Subject: [PATCH] '完善' --- ConsoleApplication/CaptureUtil.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/ConsoleApplication/CaptureUtil.cpp b/ConsoleApplication/CaptureUtil.cpp index 3ff0e33..8bf3dc2 100644 --- a/ConsoleApplication/CaptureUtil.cpp +++ b/ConsoleApplication/CaptureUtil.cpp @@ -111,12 +111,15 @@ } cv::Mat CaptureUtil::capture(int index, CaptureContentType type) { + cv::Mat cap = capture(getHWND(index, type)); return cap; } cv::Mat CaptureUtil::capture(HWND hwnd) { + clock_t starttime = clock(); cv::Mat cap = _wss::screen_shot_by_window(hwnd); + std::cout << "截图耗时: threadid-" << std::this_thread::get_id() << " 耗时:" << clock() - starttime << endl; return cap; } \ No newline at end of file -- Gitblit v1.8.0