<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Execution time of the particular function]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Is there any tool to find out the execution time of the particular function in qt.</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.qt.io/topic/9480/execution-time-of-the-particular-function</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Mar 2026 14:30:18 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/9480.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Sep 2011 04:47:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Execution time of the particular function on Wed, 14 Sep 2011 11:28:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Thank u very much. I ll find more about that tool.</p>
]]></description><link>https://forum.qt.io/post/109191</link><guid isPermaLink="true">https://forum.qt.io/post/109191</guid><dc:creator><![CDATA[suma]]></dc:creator><pubDate>Wed, 14 Sep 2011 11:28:25 GMT</pubDate></item><item><title><![CDATA[Reply to Execution time of the particular function on Wed, 14 Sep 2011 11:21:32 GMT]]></title><description><![CDATA[<p dir="auto">What is your ultimate goal? Do you want to hunt for bottlenecks in your application, or are you actually interested in the time a function took at runtime when the application is on your user's machine? In the first case, I suggest you use a tool like valgrind instead. In the second case, QTime will do just fine. Just do something like this:</p>
<p dir="auto">@<br />
QTime timer;<br />
timer.start()<br />
myLongFunction();<br />
int runtime = timer.elapsed(); //gets the runtime in ms<br />
@</p>
]]></description><link>https://forum.qt.io/post/109189</link><guid isPermaLink="true">https://forum.qt.io/post/109189</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Wed, 14 Sep 2011 11:21:32 GMT</pubDate></item><item><title><![CDATA[Reply to Execution time of the particular function on Wed, 14 Sep 2011 11:09:12 GMT]]></title><description><![CDATA[<p dir="auto">This i have tried out. It ll be fine if i get any tool to do this work.</p>
]]></description><link>https://forum.qt.io/post/109187</link><guid isPermaLink="true">https://forum.qt.io/post/109187</guid><dc:creator><![CDATA[suma]]></dc:creator><pubDate>Wed, 14 Sep 2011 11:09:12 GMT</pubDate></item><item><title><![CDATA[Reply to Execution time of the particular function on Wed, 14 Sep 2011 06:01:54 GMT]]></title><description><![CDATA[<p dir="auto">"QTime":<a href="http://doc.qt.nokia.com/latest/qtime.html#elapsed" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.nokia.com/latest/qtime.html#elapsed</a> should do the trick too.</p>
]]></description><link>https://forum.qt.io/post/109097</link><guid isPermaLink="true">https://forum.qt.io/post/109097</guid><dc:creator><![CDATA[lgeyer]]></dc:creator><pubDate>Wed, 14 Sep 2011 06:01:54 GMT</pubDate></item><item><title><![CDATA[Reply to Execution time of the particular function on Wed, 14 Sep 2011 05:35:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Thanks for fast <a href="http://reply.Im" target="_blank" rel="noopener noreferrer nofollow ugc">reply.Im</a> using Qt 4.4 but those classes are introduced in 4.7. Any other solution?</p>
]]></description><link>https://forum.qt.io/post/109091</link><guid isPermaLink="true">https://forum.qt.io/post/109091</guid><dc:creator><![CDATA[suma]]></dc:creator><pubDate>Wed, 14 Sep 2011 05:35:09 GMT</pubDate></item><item><title><![CDATA[Reply to Execution time of the particular function on Wed, 14 Sep 2011 05:13:45 GMT]]></title><description><![CDATA[<p dir="auto">You can use "QElapsedTimer":<a href="http://doc.qt.nokia.com/latest/qelapsedtimer.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.nokia.com/latest/qelapsedtimer.html</a> or "Q_BENCHMARK":<a href="http://doc.qt.nokia.com/latest/qtest.html#QBENCHMARK" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.nokia.com/latest/qtest.html#QBENCHMARK</a> of the "QtTest":<a href="http://doc.qt.nokia.com/latest/qtest.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.nokia.com/latest/qtest.html</a> module, which allows for measuring various performance metrics (Walltime, tick counter, Valgrind/Callgrind, Event Counter).</p>
]]></description><link>https://forum.qt.io/post/109088</link><guid isPermaLink="true">https://forum.qt.io/post/109088</guid><dc:creator><![CDATA[lgeyer]]></dc:creator><pubDate>Wed, 14 Sep 2011 05:13:45 GMT</pubDate></item></channel></rss>