sciai.utils.print_time

View Source On Gitee
sciai.utils.print_time(task)[source]

Print end-to-end time elapsed for a function.

Parameters

task (Callable) – Decorated function task name.

Returns

Wrapper function which would calculate and print time elapsed.