QT: Fast way to measure time?

How about QTime? Depending on your platform it should have 1 millisecond accuracy. Code would look something like this:

QTime myTimer; myTimer.start(); // do something.. int nMilliseconds = myTimer.elapsed();

你可能感兴趣的:(qt)