Skip to content

Commit

Permalink
Release 1.1.1
Browse files Browse the repository at this point in the history
Add CHANGELOG.md
  • Loading branch information
alexheretic committed Mar 24, 2022
1 parent af323b3 commit ab8c972
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spin_sleep"
version = "1.1.0"
version = "1.1.1"
authors = ["Alex Butler <[email protected]>"]
edition = "2018"
description = "Accurate sleeping. Only use native sleep as far as it can be trusted, then spin."
Expand Down

0 comments on commit ab8c972

Please sign in to comment.