Skip to content

Instantly share code, notes, and snippets.

@NLKNguyen
Created August 15, 2015 21:42
Show Gist options
  • Save NLKNguyen/26738316dd2899ab1e5b to your computer and use it in GitHub Desktop.
Save NLKNguyen/26738316dd2899ab1e5b to your computer and use it in GitHub Desktop.
Qt Snippets
// Measure Elapsed Time in Nanoseconds
// #include <QElapsedTimer>
QElapsedTimer timer;
qint64 nanoSec;
timer.start();
/* ... some activity ... */
nanoSec = timer.nsecsElapsed();
qDebug() << "elapsed time = " << nanoSec;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment