This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace external
Time
crate with std::time
`std::time::Duration` is stable as of Rust 1.3. Using it simplifies our dependencies and should make interoperability with other code easier. There is a couple of downsides: First, the API of the Duration in std is smaller than the one in the time crate so we need to e.g. do our own conversion to total seconds and milliseconds elapsed. I'm hoping this will get better in the future or will be something the time crate will adopt while using std::time::Duration for the underlying data. Second, this is a breaking change because it no longer works with the older (<=1.2) compilers.
- Loading branch information
1 parent
8e6de5b
commit fbcac42
Showing
3 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters