I know this question has been asked few times over SO but none of them is really helping me out, so asking again.
I am using windows xp and running visual studio c++
Here is a portable, self-contained, short implementation of exactly what you need: http://cplusplus.co.il/2009/08/19/portable-measurement-of-execution-time/
If the resolution isnt fine enough, you should execute your test a couple of times.