摘要: Simple example import time import concurrent.futures start = time.perf_counter() def do_something(seconds): print(f'sleeping {seconds} second(s)...') 阅读全文
posted @ 2023-01-19 17:44 华小电 阅读(28) 评论(0) 推荐(0)
摘要: Simple example import time import multiprocessing start = time.perf_counter() def do_something(): print('sleeping 1 second...') time.sleep(1) print('D 阅读全文
posted @ 2023-01-19 16:57 华小电 阅读(34) 评论(0) 推荐(0)
摘要: Simple Example 1 import time import threading start = time.perf_counter() def do_something(): print('sleeping 1 second...') time.sleep(1) print('Done 阅读全文
posted @ 2023-01-19 16:40 华小电 阅读(23) 评论(0) 推荐(0)