I'm new to posting, and new to programming, so I apologise beforehand!
I have a number of things to do.
I'm trying to write a VERY simple class for a timer, and I need to time between two lines of code (these lines of code haven't been written yet. They can be anything simple at all.) The class needs a start and stop function, and the stop function needs to return the delay that was measured. I've been told to do this using the GetTickCount function. I understand that QueryPerformanceCounter may be more suited in this situation, but my training specifies using GetTickCount.
here is a crude one. Being lazy and uninspired, its just a struct wrapper around the timer example I found online. It seems to measure e-7 seconds ish resolution on my box
^ just to clarify this, C++11 already has its version of a "high-resolution clock" (as shown above), so no need to use platform-specific Windows API (GetTickCount or QueryPerformanceTimer), unless your needs are more specific.