Skip to content

v 0.1.0

Latest
Compare
Choose a tag to compare
@victorbenichoux victorbenichoux released this 19 Nov 14:59
· 12 commits to main since this release

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 a Clock instance, while tock 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 into ticktock.renderers and ticktock.std , ticktock.timer has been split in ticktock.clocks, ticktock.collection and ticktock.timers