<p>I'm looking for the equivalent in Qt to <code>GetTickCount()</code></p>

<p>Something that will allow me to measure the time it takes for a segment of code to run as in:</p>

<pre><code>uint start = GetTickCount();
// do something..
uint timeItTook = GetTickCount() - start;
</code></pre>

<p>any suggestions?</p>

How about
```
QTime
```
?  Depending on your platform it should have 1 millisecond accuracy.  Code would look something like this:
```
```
QTime myTimer;
myTimer.start();
// do something..
int nMilliseconds = myTimer.elapsed();
```
```