yt.funcs.time_execution

yt.funcs.time_execution(func)[source]

Decorator for seeing how long a given function takes, depending on whether or not the global ‘yt.timefunctions’ config parameter is set.