#include <QDebug>
#include <QElapsedTimer>
...
...
...
QElapsedTimer timer;
qint64 nanoSec;
timer.start();
<<do somthing...>>
nanoSec = timer.nsecsElapsed();
qDebug() << timer.elapsed() << ", " << nanoSec;


+ Recent posts