3 ms·
boost::date_time. I've cursed at it in the beginning, but it does things the Right Way, and I've been saved a number of times by its fighting back against short
by roel_v 15y ago
boost::date_time. I've cursed at it in the beginning, but it does things the Right Way, and I've been saved a number of times by its fighting back against shortcuts (like using Unix time - the issues identified in the article are real and a good summary, but the solution only works for the case where you need to work within a limited time span, from 1970 until a few decades into this century.)
- exDM69 15y agoC++0x standard library is pretty nice too. std::chrono and std::thread work nicely together. Right now I'm working with C, pthreads and struct timespec's and it makes me wish for a good time handling library.