toctic#

toctic(returntic=False, returntoc=False, *args, **kwargs)[source]#

A convenience fuction for multiple timings. Can return the default output of either sc.tic() or sc.toc() (default neither). Arguments are passed to sc.toc(). Equivalent to sc.toc(reset=True).

Example:

sc.tic()
slow_operation_1()
sc.toctic()
slow_operation_2()
sc.toc()

New in version 1.0.0.