Zsolti01

decoration2

Aug 11th, 2020 (edited)
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import time
  2.  
  3. def my_timer(func):
  4.     def wrapper(*args,**kwargs):
  5.         start_timer=time.time()
  6.         result=func(*args,**kwargs)
  7.         print(f"Eltelt idő: {time.time()-start_timer}")
  8.         return result
  9.     return wrapper
Add Comment
Please, Sign In to add comment