about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-08-13 23:11:28 +0000
committerbors <bors@rust-lang.org>2014-08-13 23:11:28 +0000
commit28b5e4588f5d78d2dab830245bc453dd666af617 (patch)
tree72a65cb6a11a37106bc302c2035e7d38e854f82a /src/rustllvm/RustWrapper.cpp
parent0f09f51c61f1671caa75e9797f081ab4e312b634 (diff)
parent075256a0701e23ce56e9c09206d6c8f581c46115 (diff)
downloadrust-28b5e4588f5d78d2dab830245bc453dd666af617.tar.gz
rust-28b5e4588f5d78d2dab830245bc453dd666af617.zip
auto merge of #15934 : brson/rust/dur, r=aturon
Currently, the Timer methods take an integer number of ms. This is considered a bug because a) types, b) some timers have ns precision.

This plucks the `Duration` type from [rust-chrono](https://github.com/lifthrasiir/rust-chrono), plops it into `std::time`,  and replaces the arguments to `sleep`, `oneshot`, and `periodic` timers with it. It leaves the old methods intact as `sleep_ms`, `oneshot_ms`, and `periodic_ms`, for convenience.

Closes https://github.com/rust-lang/rust/issues/11189.

cc @lifthrasiir @aturon @kballard @alexcrichton
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions