Decorator for seeing how long a given function takes, depending on whether or not the global ‘yt.timefunctions’ config parameter is set.
This can be used like so:
@time_execution
def some_longrunning_function(...):
yt.funcs.rootonly
yt.lagos.identify_contours
Enter search terms or a module, class or function name.