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

James Yan jyan972 at gmail.com
Thu Jul 16 08:22:06 CEST 2009


with windows API, i can :

===
LARGE_INTEGER  feq,t_start,t_end;
int                         cost_time;

QueryPerformanceFrequency(&feq);

QueryPerformanceCounter(&t_start);
something_cost_time();
QueryPerformanceCounter(&t_end);

cost_time = (int)((t_end.QuadPart-t_start.QuadPart)*1000/feq.QuadPart);===

how to with Qt? can archive the same granularity?  thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090716/06ed7586/attachment.html 


More information about the Qt-interest-old mailing list