Uh oh!
There was an error while loading. Please reload this page.
libtime: Use Duration in Timespec arithmetic. - #16650
Conversation
alexcrichton
commented
Aug 21, 2014
This looks great, thanks! It may take #16626 more time to land than this, so perhaps this could be rebased on master and this could land first? |
7df21fa to
913f0ffCompareruuda
commented
Aug 22, 2014
This works with the current |
There was a problem hiding this comment.
Could you align this .num_nanoseconds() to the right to not be left-aligned?
There was a problem hiding this comment.
I wondered about that, what the best style is (I could not find anything in the style guide). Do you mean aligning it with the opening parenthesis?
913f0ff to
cb8389dComparealexcrichton
commented
Aug 26, 2014
Now that #16626 has been approve, this should probably wait to get merged, other than that this looks good to me! |
alexcrichton
commented
Aug 29, 2014
Now that #16626 has merged, should this be rebased to remove the FIXMEs? |
ruuda
commented
Aug 29, 2014
Yes, I’m running |
cb8389d to
d20de6dCompareThis changes the `Add` and `Sub` implementations for `Timespec` introduced in #16573 to use `Duration` as the time span type instead of `Timespec` itself, as [suggested](#16573 (comment)) by @sfackler. This depends on #16626, because is uses `Duration::seconds(i64)`, whereas currently `Duration::seconds` takes an `i32`.
Fix: Fix metrics CI failing
This changes the
AddandSubimplementations forTimespecintroduced in #16573 to useDurationas the time span type instead ofTimespecitself, as suggested by @sfackler.This depends on #16626, because is uses
Duration::seconds(i64), whereas currentlyDuration::secondstakes ani32.