C++ (Qt) QTime start = QTime::currentTime(); .... qDebug() << "прошло " << start.elapsed() << " милисекунд";
C++ (Qt)QTime t;t.start();some_lengthy_task();qDebug("Time elapsed: %d ms", t.elapsed());