GetTickCount wont work on most systems - its not standard c++ - its a Microsoft extension.
Better to throw together a DIY timing class. The constructor records the time at construction and then you have a member function, called TimeElapsed(), that takes the current time, and subtracts the start time to give an answer.
Note that standard c++ doesnt provide for great granularity, so if its a given function you want to time you'd be better off calling it, say, a million times and measuring the total time.
Alternatively, most compilers/ides can run a profiler, that will give coverage and timing info.