Created by andreanx
Created on February 13, 2020
117 Bytes
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