duration API changes

Looks like the duration API was changed recently: https://github.com/rust-lang/rust/issues/16466

In particular:
```rust
fn milliseconds(millis: i32) -> Duration
```
to
```rust
fn milliseconds(milliseconds: i64) -> Duration
```