openmmtools.utils.with_timer

openmmtools.utils.with_timer(task_name)[source]

Decorator that logs the execution time of a function.

Parameters:
task_namestr

The name of the task that will be reported.