yt.funcs.time_execution

yt.funcs.time_execution(func)

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(...):

Previous topic

yt.funcs.rootonly

Next topic

yt.lagos.identify_contours

This Page