vis4d.common.time

This module contains utilities for tracking execution time.

Functions

timeit(func)

Function to be used as decorator to time a function.

Classes

Timer()

Timer class based on perf_counter.

class Timer[source]

Timer class based on perf_counter.

Creates an instance of the class.

pause()[source]

Pause function.

Return type:

None

reset()[source]

Reset timer.

Return type:

None

resume()[source]

Resume function.

Return type:

None

time(milliseconds=False)[source]

Return elapsed time.

Return type:

float

timeit(func)[source]

Function to be used as decorator to time a function.