[Qt-interest] how to computing costed time of a function?

Amit Pundir pundiramit at gmail.com
Thu Jul 16 11:28:54 CEST 2009


On Thu, Jul 16, 2009 at 2:26 PM, Christopher Rasch-Olsen
Raa<christopher at technophile.info> wrote:
> You could use QTime for such measurement. Have a look at QTime::start().
> QTime timer;
> timer.start();
> long_operation();
> qDebug() << "Elapsed:" << timer.elapsed();
>

Hi, is there any way to measure elapsed time in microseconds?

Regards
Amit Pundir



More information about the Qt-interest-old mailing list