]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #63053 - kornelski:clockdrift, r=shepmaster
authorMazdak Farrokhzad <twingoow@gmail.com>
Sun, 28 Jul 2019 19:19:59 +0000 (21:19 +0200)
committerGitHub <noreply@github.com>
Sun, 28 Jul 2019 19:19:59 +0000 (21:19 +0200)
commit117fa1de982da53977692c4636d58730c8a75b10
tree5ea0c56491604c6988663164bfd067e6550615cc
parenta3cae5740cca893204c4d6d9fe43506f0eec8441
parent55c07b39ae89408c08de4781b2051cc4c7cc7b20
Rollup merge of #63053 - kornelski:clockdrift, r=shepmaster

SystemTime docs: recommend Instant for elapsed time

Introduction to `SystemTime` mentions problems with non-monotonic clocks, but individual methods don't.

For benefit of users who jump directly to method's documentation, also recommend `Instant` in `elapsed` and `duration_since`.

`SystemTime::elapsed()` docs overpromised the elapsed time. It's not elapsed time, but a difference between two clocks.