All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- New timeit option
--observe
detects and summarizes the output of a command. First supported format: pytest (see README for an example). - New
pytestsim
utility to test the observe in-flight operations (see item above).
- The displayed duration of each ticker is now correctly rounded to a unit proportional to the value of the
--ticker
flag.
- Due to the introduction of package kong to parse the command-line, now
sleepit
wants flags specified with two hyphens, for example--sleep
instead of-sleep
.
- Timeit now always reports the command status. For example:
$ timeit true timeit results: command succeeded real: 4ms $ timeit false timeit results: command failed: exit status 1 real: 2ms $ timeit sleep 2 ^Ctimeit: got signal name=interrupt count=1 disposition=ignore timeit results: command terminated abnormally: signal: interrupt real: 1.851s
v0.7.0 - [2023-01-21]
- Fix #1 as non reproducible. In any case, added manual test configuration in testdata/terraform.
- Fix tests about signal handling. Code was already correct, but tests were not.
- Due to the introduction of package kong to parse the command-line, now
timeit
wants flags specified with two hyphens, for example--ticker
instead of-ticker
.
- Upgrade to Go 1.19.
- Upgrade dependencies.
- Integration tests are now driven by package rogpeppe/go-internal/testscript.
- The sleepit helper now performs optional signal handling and interruptible work and cleanup phases, to enable better tests:
sleepit: sleep for the specified duration, optionally handling signals Usage: sleepit <command> [<args>] Commands default Use default action: on reception of SIGINT terminate abruptly handle Handle signals: on reception of SIGINT perform cleanup before exiting version Show the sleepit version Usage of default: -sleep duration Sleep duration (default 5s) Usage of handle: -cleanup duration Cleanup duration (default 5s) -sleep duration Sleep duration (default 5s) -term-after N Terminate immediately after N signals. Default is to terminate only when the cleanup phase has completed.
- The sleepit helper now has also a good series of tests.
- Add CI: build and test with GitHub Actions, for platforms: Linux, macOS, Windows.
- Add basic and experimental support for Windows. Untested: signal handling.
v0.6.0 - [2021-01-17]
- Add color output, enabled by default. Use flag
-no-color
to disable. If stderr is not a TTY (eg: redirected to a file), then coloring will be disabled.
v0.5.0 - [2020-09-16]
- Round elapsed time to milliseconds GH-4
v0.4.0 - [2020-09-15]
- Print newline at the beginning of each ticker GH-2.
- Use Go 1.15.
- Update Taskfile to task v3.
v0.3.0 - [2020-06-08]
- Add flag
-check-version
: check online if there is a more recent release available, courtesy of taschino. - Add flag
-ticker <duration>
: print a status line each .
v0.2.0 - [2020-06-05]
- Binary releases available from GitHub releases page.
- Taskfile machinery to make GitHub releases, using github-release
v0.1.0 - [2020-06-02]
First release.
- Basic timing functionalities.
- Print timing results also if child exits with error.
- Return correct exit code if child is terminated by a signal (128 + sigNum).
- Ignore SIGINT as /usr/bin/time does; let child handle it (see commit comments for ac061824f).
- flag
-version
reports the git commit.