-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: add new top-level SignedDuration type
It is meant to be as close of a mimic of `std::time::Duration` as possible, but signed instead of unsigned. In most cases, it's a drop-in replacement. This type fits more naturally with Jiff's signed `Span` type. We call methods using this type "jiff_duration," which is a bit of a mouthful. In `jiff 0.2`, we'll plan to drop the `jiff_` prefix and remove the corresponding `std::time::Duration` methods. Instead, callers can use `SignedDuration` and then convert to-and-from `std::time::Duration` from there.
- Loading branch information
1 parent
7853ead
commit 2929067
Showing
8 changed files
with
2,848 additions
and
99 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
Oops, something went wrong.