by dman · 11y ago · 0 comments
I find it easier to read now, specially when using iterators on for loops.
auto now = boost::chrono::steady_clock::now().time_since_epoch();
auto timeSinceEpoch = boost::chrono::duration_cast<boost::chrono::milliseconds>(now).count();
(This is from http://stackoverflow.com/questions/16700277/get-a-double-fro...).
The person writing the answer is dilligent and hence has supplied the types as a preamble. Most articles / answers / api docs dont take the effort to elaborate on return value types.