Times the execution time of a function call in seconds. Use : timer( function, parameter1, parameter2, …)
from time import monotonic def timer(f, *par): start=monotonic() f(*par) return monotonic()-start
Create, edit, and import your Python scripts
Times the execution time of a function call in seconds. Use : timer( function, parameter1, parameter2, …)
from time import monotonic def timer(f, *par): start=monotonic() f(*par) return monotonic()-start