I use function from external library with interface like this:void f(int timeout);. Where timeout is in milliseconds. To make my code more readable, I want to use chrono in such form:
f(std::chrono::milliseconds(10).count());
-
is it possible that
std::chrono::milliseconds(10).count() != 10? -
is any "underwater rocks" that prevent modern compilers (clang, gcc, VC++) to convert
f(std::chrono::milliseconds(10).count())tof(10)?
Aucun commentaire:
Enregistrer un commentaire