about summary refs log tree commit diff
path: root/src/librustc_codegen_utils/codegen_backend.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-07-28 21:19:59 +0200
committerGitHub <noreply@github.com>2019-07-28 21:19:59 +0200
commit117fa1de982da53977692c4636d58730c8a75b10 (patch)
tree5ea0c56491604c6988663164bfd067e6550615cc /src/librustc_codegen_utils/codegen_backend.rs
parenta3cae5740cca893204c4d6d9fe43506f0eec8441 (diff)
parent55c07b39ae89408c08de4781b2051cc4c7cc7b20 (diff)
downloadrust-117fa1de982da53977692c4636d58730c8a75b10.tar.gz
rust-117fa1de982da53977692c4636d58730c8a75b10.zip
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.
Diffstat (limited to 'src/librustc_codegen_utils/codegen_backend.rs')
0 files changed, 0 insertions, 0 deletions