mardi 10 mars 2015

Cast chrono::milliseconds to uin64_t?

Assuming I have the number of milliseconds in variable x:



chrono::milliseconds x = std::chrono::duration_cast<chrono::milliseconds>(something);


how do I convert x from chrono::milliseconds to uint64_t?


I have tried:



uint64_t num = std::chrono::duration_cast<uint64_t>(x);


but it says:



no matching function for call to duration_cast(std::chrono::milliseconds&)



Aucun commentaire:

Enregistrer un commentaire