diff --git a/Cargo.toml b/Cargo.toml index f87c770..15f900e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "minstant" -version = "0.1.6" +version = "0.1.7" authors = ["The TiKV Authors"] edition = "2021" license = "MIT" diff --git a/README.md b/README.md index e9f3749..2b798c9 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,14 @@ This library is used by a high performance tracing library [`minitrace-rust`](ht ## Platform Support -Currently, only the Linux on `x86` or `x86_64` is backed by [TSC](https://en.wikipedia.org/wiki/Time_Stamp_Counter). On other platforms, `minstant` falls back to coarse time. If TSC is unstable, it will also fall back to coarse time. +Currently, only the Linux on `x86` or `x86_64` is backed by [TSC](https://en.wikipedia.org/wiki/Time_Stamp_Counter). On other platforms, `minstant` falls back to std::time. If TSC is unstable, it will also fall back to std::time. + +If speed is privileged over accuracy when fallback occur, you can use `fallback-corase` feature to corase time: + +```toml +[dependencies] +minstant = { version = "0.1", features = ["fallback-coarse"] } +``` ## Benchmark