C GetTickCount (windows function) to Time (MIliseconds)
i'm testing one code provided from my college and i need to measure the time of execution of one routine than performs a context switch (of threads) 

What's the best choice to measure the time?
I know that is available High Resolution Timers like,

QueryPerformanceCounter
QueryPerformanceFrequency

but how can i translate using that timers to Miliseconds or nanoSeconds depending of curse my CPU Clock and Frequency?

Thanks




C GetTickCount (windows function) to Time (MIliseconds)
===

i'm testing one code provided from my college and i need to measure the time of execution of one routine than performs a context switch (of threads) 

What's the best choice to measure the time?
I know that is available High Resolution Timers like,

QueryPerformanceCounter
QueryPerformanceFrequency

but how can i translate using that timers to Miliseconds or nanoSeconds depending of curse my CPU Clock and Frequency?

Thanks



