Advertisement
VanoHa

execute time and memory

Nov 28th, 2022
696
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. from time import time
  2. from memory_profiler import memory_usage
  3.  
  4. start = time()
  5.  
  6. #program
  7.  
  8. print('Execution time:', time()-start)
  9.  
  10. print(memory_usage())
  11.  
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement