gnn_tracking.utils.timing#

Classes#

Timer

Helper class for timing code blocks.

Functions#

get_logger([name, level])

Sets up global logger.

timing([name, logger])

Context manager for timing code blocks.

Module Contents#

gnn_tracking.utils.timing.get_logger(name='gnn-tracking', level=LOG_DEFAULT_LEVEL)#

Sets up global logger.

class gnn_tracking.utils.timing.Timer#

Helper class for timing code blocks. t0 is set to the current time when the class is instantiated.

__call__()#

Return the time since the last call or __init__.

gnn_tracking.utils.timing.timing(name='Codeblock', logger=None)#

Context manager for timing code blocks.