diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2018-06-02 13:14:22 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-02 13:14:22 -0600 |
| commit | 77c8bd0b4e1805980ea811f543e65f870b74a59a (patch) | |
| tree | 25cfd50f02661b4dac0263d98ad63f16e58a82a7 /src/rustllvm/RustWrapper.cpp | |
| parent | 4ecf12bf0eb8386626ccdb5f721a7183ccc4eba6 (diff) | |
| parent | fc895665c9a6ba9bc0be7844cb7162797b557a34 (diff) | |
| download | rust-77c8bd0b4e1805980ea811f543e65f870b74a59a.tar.gz rust-77c8bd0b4e1805980ea811f543e65f870b74a59a.zip | |
Rollup merge of #50167 - fintelia:duration-nanos, r=sfackler
Add as_nanos function to Duration Duration has historically lacked a way to get the actual number of nanoseconds it contained as a normal Rust type because u64 was of insufficient range, and f64 of insufficient precision. The u128 type solves both issues, so I propose adding an `as_nanos` function to expose the capability.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
