NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #670 most downloaded on crates.io
high-speed timing library
Last release 10 days ago
27 Sep 2026
Release timing varies
gaps range from 3 weeks to 1.3 years
Most releases are documented
notes for 30 of 34 stable releases
2 versions withdrawn
withdrawn after publishing
8 years old
39 releases · first in 2019
chore: Release quanta version 0.13.0
chore: Release quanta version 0.13.0
wasm32-wasip2 target, alongside continued support for wasm32-wasip1.Mock, IntoNanoseconds, and Clock::mock -- is now gated behind the new
mock feature flag. The feature is part of the default feature set, so builds using default features are unaffected,
but builds using default-features = false must now enable mock explicitly. Additionally, with_clock becomes a
no-op when the feature is disabled. (#118)wasm32-wasi target is no longer supported, as WASI support is now selected based on
target_env being either p1 or p2. Use wasm32-wasip1 instead.winapi to windows-sys for querying the monotonic clock on Windows.
(#114)once_cell and crossbeam-utils with std::sync::OnceLock and portable-atomic, dropping two dependencies
in the process. portable-atomic is used with its fallback feature so that platforms without native 64-bit atomic
support continue to work.CLOCK_OVERRIDE thread local is now initialized with a const block.
(#117)timespec could no longer be constructed with struct literal syntax due
to private fields. (#121)One column per quarter.
chore: Release quanta version 0.12.6
chore: Release quanta version 0.12.6
chore: Release quanta version 0.12.5
chore: Release quanta version 0.12.5
Instant. (#110)chore: Release quanta version 0.12.4
chore: Release quanta version 0.12.4
chore: Release quanta version 0.12.3
chore: Release quanta version 0.12.3
(cargo-release) quanta version 0.12.2
(cargo-release) quanta version 0.12.2
std::time::Instant due to using a clock source that did not account
for device sleep. (#97)(cargo-release) quanta version 0.12.1
(cargo-release) quanta version 0.12.1
(cargo-release) quanta version 0.12.0
(cargo-release) quanta version 0.11.1
(cargo-release) quanta version 0.11.1
Clock::delta_as_nanos, for getting the delta between two raw measurements as
the whole number of nanoseconds instead of the initial conversion to Duration. (#86)(cargo-release) quanta version 0.11.0
(cargo-release) quanta version 0.11.0
(cargo-release) quanta version 0.10.1
(cargo-release) quanta version 0.10.1
std::error::Error for quanta::Error. (#68)window.performance.now() in WASM. (#72)Documentation has been updated to reflect that quanta does not track time across system suspends.
quanta does not track time across system
suspends.Instant::as_u64 has been removed. As it provided direct access to an value that could
fundamentally change from version-to-version, it felt like time to remove that footgun and push
users more towards the API that mimics std::time.Clock::upkeep has been removed. It doesn't need to exist on Clock directly, as we have had
the quanta::set_recent free function for a while now, and was just duplicating that.Clock::start and Clock::end have been removed. They saw limited usage and overall just added somewhat needless API
clutter given that users who are looking to do ultra-precise timing will either want more control or use another
technique such as instruction counting.Fixed compilation issue with Mock on MIPS/ARM.
Pinned crossbeam-utils to v0.8.5 where AtomicCell::fetch_update was introduced to fix, which fixes broken builds where Cargo chooses a version between
crossbeam-utils to v0.8.5 where AtomicCell::fetch_update was introduced to fix, which
fixes broken builds where Cargo chooses a version between 0.8.0 and 0.8.5.raw-cpuid to 10.2 and average to 0.13.Switched from atomic-shim to crossbeam-utils for better cross-platform atomic support.
atomic-shim to crossbeam-utils for better cross-platform atomic support. (#52)### Added - Support for WASM/WASI targets.
Instant::as_unix_duration as it was added in error.
Instant::as_unix_duration as it was added in error.metrics feature flag as metrics-core is no longer a relevant crate.Bumped dependency on raw-cpuid to 9.0 in order to deal with a RustSec advisory.
raw-cpuid to 9.0 in order to deal with a RustSec
advisory.Incorrect method visibility for non-SSE2 implementation of Counter.
Counter.
(#38)Clock::now takes &self instead of &mut self.
Clock::now takes &self instead of &mut self.Instant::now and Instant::recent for getting the current and recent time,
respectively.quanta::with_clock for setting an override on the current thread that affects
calls made to Instant::now and Instant::recent.quanta::set_recent to allow customization of how global recent time is
updated.Nothing published for this version
Fixed a bug with not being able to start the upkeep thread at all.
Add Instant::as_unix_duration to get the duration of time since the Unix epoch from an Instant.
Instant::as_unix_duration to get the duration of time since the Unix epoch from an
Instant.
clocksource from dependencies and tests as it no longer compiles on stable or nightly.Publicly expose Clock::upkeep for advanced use cases.
Clock::upkeep for advanced use cases.### Added - Add support for MIPS/PowerPC.
Publicly expose the Error type returned by Upkeep::start.
Error type returned by Upkeep::start.This version of quanta was a massive overhaul of man areas of the API and internals, which was done in a single PR: (#19). You can read the PR descrip
This version of quanta was a massive overhaul of man areas of the API and internals, which was
done in a single PR: (#19). You can read the PR
description for the finer details. All changes below are part of the aforementioned PR.
Clock::now now returns a monotonic value in all cases.Clock::delta.Clock instances, running only once when the first Clock
is created.Nothing published for this version
Nothing published for this version
Fix the logic to figure out when calibration is required.
### Changed - Small tweak to the docs.
Switch to mach for macOS/iOS as it was deprecated in libc.
Nothing published for this version
Differentiate between raw and scaled time by adding a new Instant type.
Instant type.
(#10)Nothing published for this version
Nothing published for this version
Nothing published for this version
Fixed support for Windows. It was in a bad way, but actually works correctly now!
<!-- next-url --> [Unreleased]: https://github.com/metrics-rs/quanta/compare/v0.13.0...HEAD [0.13.0]: https://github.com/metrics-rs/quanta/compare/v0.
<!-- next-url --> [Unreleased]: https://github.com/metrics-rs/quanta/compare/v0.13.0...HEAD [0.13.0]: https://github.com/metrics-rs/quanta/compare/v0.12.6...v0.13.0 [0.12.6]: https://github.com/metrics-rs/quanta/compare/v0.12.5...v0.12.6 [0.12.5]: https://github.com/metrics-rs/quanta/compare/v0.12.4...v0.12.5 [0.12.4]: https://github.com/metrics-rs/quanta/compare/v0.12.3...v0.12.4 [0.12.3]: https://github.com/metrics-rs/quanta/compare/v0.12.2...v0.12.3 [0.12.2]: https://github.com/metrics-rs/quanta/compare/v0.12.1...v0.12.2 [0.12.1]: https://github.com/metrics-rs/quanta/compare/v0.12.0...v0.12.1 [0.12.0]: https://github.com/metrics-rs/quanta/compare/v0.11.1...v0.12.0 [0.11.1]: https://github.com/metrics-rs/quanta/compare/v0.11.0...v0.11.1 [0.11.0]: https://github.com/metrics-rs/quanta/compare/v0.10.1...v0.11.0 [0.10.1]: https://github.com/metrics-rs/quanta/compare/v0.10.0...v0.10.1 [0.10.0]: https://github.com/metrics-rs/quanta/releases/tag/v0.10.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →