Repository navigation
Cleanup std::chrono usage - #3576
Conversation
|
We're using The only times
In both of those cases the expression should be immediately assigned to a |
|
The main goal for establishing aliases and helper functions is consistency. We either follow
Yes, however, as you mentioned, using helpers like
Are you suggesting we should get rid of our helpers and use e.g.
What do you have in mind then for cases where output is required to be in a time unit that is not seconds - e.g. https://github.com/mapbox/mapbox-gl-native/blob/master/platform/default/timer.cpp#L69 ? |
It's a little inconsistent, but given that we just have type aliases, it's not a problem per se. I think @jfirebaugh wants to say that we should stay with or move back to |
|
Right @kkaefer.
It looks like the main issue here is |
4b94a00 to
cbe4435
Compare
Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible.
cbe4435 to
2f86467
Compare
|
Looks good! |
We have abstractions for
std::chronoinmbgl/util/chrono.hppfor most common usages. This patch series reducesstd::chronocast complexity and usage toinclude/mbgl/util/chrono.hpp.👀 @kkaefer @jfirebaugh @tmpsantos