diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..706f552 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,24 @@ +# v1.1.1 +* Fix LoopHelper increment overflow handling. + +# v1.1.0 +* Expose fn `native_sleep`. +* Add `SpinSleeper::with_spin_strategy` which allows specifying a `SpinStrategy`. Previously thread yielding was always used. +* **Windows** Use SpinStrategy::SpinLoopHint by default (see #12). + +# v1.0.0 +* Use rust 1.38 _duration_float_ methods to replace manual implementations. +* Use edition 2018. +* _Windows_: Replace lazy_static dependency with once_cell. + +# v0.3.7 +* `report_rate()` no longer eagerly reports on first call, as this is often inaccurate & unexpected. + +# v0.3.6 +* Add `spin_sleep::sleep` +* Add `LoopHelper::set_target_rate` & `LoopHelper::target_rate` +* Improve documentation + +# v0.3.5 +* Use `std::thread::yield_now` in spin wait loops for efficiency +* Add `Default` implementation for `SpinSleeper` using OS-specific accuracy defaults diff --git a/Cargo.toml b/Cargo.toml index 58889f2..1cb12ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "spin_sleep" -version = "1.1.0" +version = "1.1.1" authors = ["Alex Butler "] edition = "2018" description = "Accurate sleeping. Only use native sleep as far as it can be trusted, then spin."