1
Fork 0

std: Rename sleep, periodic, and oneshot timers to sleep_ms, etc.

Rename io::timer::sleep, Timer::sleep, Timer::oneshot,
Timer::periodic, to sleep_ms, oneshot_ms, periodic_ms. These functions
all take an integer and interpret it as milliseconds.

Replacement functions will be added that take Duration.

[breaking-change]
This commit is contained in:
Brian Anderson 2014-07-14 19:30:05 -07:00
parent 5778ed4c92
commit 657b679b15
6 changed files with 58 additions and 57 deletions

View file

@ -976,7 +976,7 @@ mod tests {
assert!(!p.wait().unwrap().success());
return
}
timer::sleep(100);
timer::sleep_ms(100);
}
fail!("never saw the child go away");
})