dimanche 30 octobre 2016

error: ‘chrono’ is not a namespace-name

I'm try to code a timer which calcule the duration of an algorithm I'm using C++11 with high_resolution_clock, but when I try to compile my code in GCC it shows that error

using namespace std::chrono; error: ‘chrono’ is not a namespace-name

How can I solve this?

Aucun commentaire:

Enregistrer un commentaire