Repository navigation
Replacing most of absl/time with iree/base:time. - #2572
Merged
Merged
Conversation
benvanik
force-pushed
the
benvanik-time
branch
3 times, most recently
from
July 19, 2020 01:27
d5b9583 to
0657e69
Compare
benvanik
marked this pull request as ready for review
July 19, 2020 01:42
Still using absl::Now() to get the current time (as it does some magic) but that will be replaced in the future.
Our only use is now for querying the system time, which if the timezone stuff isn't stripped after this we can fork.
ScottTodd
approved these changes
Jul 20, 2020
Comment on lines
+98
to
+100
| if (static_cast<iree_time_t>(lhs) == IREE_TIME_INFINITE_FUTURE || | ||
| static_cast<iree_time_t>(rhs) == IREE_TIME_INFINITE_FUTURE) { | ||
| return InfiniteDuration(); |
Member
There was a problem hiding this comment.
Could add unit test coverage for this (and other behavior). Low priority.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The new time C++ helpers wrap the C API giving us consistency on both sides of the boundary. We now also only pull in absl/time for a single function and we should be able to cut that in the future. absl/time contributes at least 55KB to a hello-world binary that we should be able to reduce to 0.
Progress on #898.