├── .github └── workflows │ └── ci.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE ├── README.md ├── experiments ├── Cargo.toml ├── README.md └── src │ └── bin │ ├── native_sleep_accuracy.rs │ └── spin_strategy_latency.rs ├── src ├── lib.rs ├── loop_helper.rs └── windows.rs └── util ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE ├── README.md └── src ├── interval.rs ├── lib.rs └── report.rs /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | **/*.rs.bk 3 | Cargo.lock 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/README.md -------------------------------------------------------------------------------- /experiments/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/experiments/Cargo.toml -------------------------------------------------------------------------------- /experiments/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/experiments/README.md -------------------------------------------------------------------------------- /experiments/src/bin/native_sleep_accuracy.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/experiments/src/bin/native_sleep_accuracy.rs -------------------------------------------------------------------------------- /experiments/src/bin/spin_strategy_latency.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/experiments/src/bin/spin_strategy_latency.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/loop_helper.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/src/loop_helper.rs -------------------------------------------------------------------------------- /src/windows.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/src/windows.rs -------------------------------------------------------------------------------- /util/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/util/CHANGELOG.md -------------------------------------------------------------------------------- /util/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/util/Cargo.toml -------------------------------------------------------------------------------- /util/LICENSE: -------------------------------------------------------------------------------- 1 | ../LICENSE -------------------------------------------------------------------------------- /util/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/util/README.md -------------------------------------------------------------------------------- /util/src/interval.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/util/src/interval.rs -------------------------------------------------------------------------------- /util/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/util/src/lib.rs -------------------------------------------------------------------------------- /util/src/report.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexheretic/spin-sleep/HEAD/util/src/report.rs --------------------------------------------------------------------------------