Moved .sleep() to Timer.
auto merge of #8691 : anasazi/rust/fix-timer-interface, r=brson

Resolves #8687.