Deprecate _ms functions that predate the Duration API

This commit is contained in:
Ben Striegel 2015-11-04 17:11:01 -08:00
parent effcd29652
commit a2efa2aa29
3 changed files with 6 additions and 1 deletions

View file

@ -430,7 +430,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
.expect(&format!("failed to exec `{:?}`", config.adb_path));
loop {
//waiting 1 second for gdbserver start
::std::thread::sleep_ms(1000);
::std::thread::sleep(::std::time::Duration::new(1,0));
if TcpStream::connect("127.0.0.1:5039").is_ok() {
break
}