High-resolution timer for C++

Howdy ho! My name is Simon Wybranski, I am a developer on the C++ AMP team!

In this blog post I am going to present a high-resolution timer for measuring the performance of C++ AMP algorithms. There is nothing specific in it to C++ AMP, so it can be used to measure elapsed time of your PPL algorithms or any other C++ code.

You are right, it is a simple wrapper class over QPC() API. It met my needs, but certainly might be not good everyone. You can adapt it to account for possible jumps and multiprocessor system with these changes:

1) Call SetThreadAffinityMask in the constructor, constraint thread to run on the same processor.