switches to std::time::duration::Duration.