merlin.models.utils.misc_utils.Timing

class merlin.models.utils.misc_utils.Timing(message, file=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, logger=None, one_line=True)[source]

Bases: object

A context manager that prints the execution time of the block it manages

__init__(message, file=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, logger=None, one_line=True)[source]

Methods

__init__(message[, file, logger, one_line])