Releases: victorbenichoux/ticktock
Releases · victorbenichoux/ticktock
v 0.1.0
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
0.0.7 - Update with more API features
Easier control on formatting: use set_format(format: str, max_terms: int = None, no_update: bool)
to set:
- the format string
format
- the number of displayed units it times
max_terms
(#6) - and to turn off ASCII control characters (used to update the previous line) with
no_update
This was signaled by #4.
Turn on or off the ticktock
collection of timings and rendering with enable/disable
. (#5)
Fix a bug in which the carriage return was not returned.
Improvements to the documentation, some more testing.
Thanks to all the people who contributed issues!