pocketpy/scripts/98_profiler.py
2025-08-15 16:34:16 +08:00

12 lines
118 B
Python

from pkpy import *
import time
def costly_func(n: int):
time.sleep(n)
x = 1
y = 2
costly_func(2)
time.sleep(1)