This is the first minor release of ticktock
. It contains many bug fixes and a major overhaul of the formatting system.
- The format string now can control the whole output line (including the beginning of the line with the name). Format can be set globally with
set_format
. - Providing a
format=...
keyword argument to any of the ticktock functions (decorator, context manager,tick
/tock
) will override the formatting for this clock. - Format strings now accept a generic
name
parameter that takes into account the provided name parameters to ticktock functions, and has a consistent behavior across use cases tick
returns aClock
instance, whiletock
returns the recorded time delta in ns- clock disambiguation now exclusively occurs with frame information (also used names previously)
- Internal modules have been reorganized:
ticktock.renderers
has been split intoticktock.renderers
andticktock.std
,ticktock.timer
has been split inticktock.clocks
,ticktock.collection
andticktock.timers