[Qt-interest] how do use the timer to calculate the time duration
Ferenc Stelcz
ferenc at stelcz.hu
Mon Jun 22 19:59:37 CEST 2009
Yuvaraj R wrote:
> Hi All
>
> I want to calculate the task completion time..
>
> So How do use the timer to calculate the time duration..
>
>
> Thanks
>
> Yuvaraj R
>
There are more and more of "your" ermmm.. kind of "developers"... :D
Assistant -> Search -> "QTime" -> void QTime::start();
from the 2nd line:
QTime t;
t.start();
some_lengthy_task();
qDebug("Time elapsed: %d ms", t.elapsed());
--
Ferenc Stelcz
Junior Software Engineer
Banyan Technologies LLC.
__________ Information from ESET Smart Security, version of virus signature database 4177 (20090622) __________
The message was checked by ESET Smart Security.
http://www.eset.com
More information about the Qt-interest-old
mailing list