I made the changes to use timeGetTime and the results were similar so those profiled sections were obviously very fast.

I was very surprised to see how slow the Flip command was!