utils.profile¶
Collection of utilities for minimal code profiling.
-
class
ximpol.utils.profile.
xChrono
[source]¶ Small chronometer class.
A chronometer essentially measures the elapsed time since it has been started and is equipped to print itself to the standard output. (Note the chronometer is reset unpon the instantiation of a class object.)
Examples
>>> from ximpol.utils.profile import xChrono >>> c = xChrono() >>> # ... do something. >>> print(c)