Import in python using from mcutils.utils.log import log_function
mcutils.utils.log.
log_function
Log the time spent in a function.
When verbose: log both entering and leaving of function, otherwise only when leaving function.