fix build to last Rust
- Duration takes now i64
- deprecated (get_mut_ref, get_ref -> as_mut / as_ref)