log_function

Import in python using from mcutils.utils.log import log_function

mcutils.utils.log.log_function(verbose=True, include_parameters=False, include_result=False)[source]

Log the time spent in a function.

When verbose: log both entering and leaving of function, otherwise only when leaving function.