A while back I wrote a post about how I’ve used Stopwatch to profile .NET applications, this post is similar, it shows how “micro-benchmarking” can be done in C++ and more importantly it also shows how we can create a “using block” in C++.
Read more: Helper Code
The unmanaged Stopwatch
Benchmarking in C++ can be done using the following code (courtesy of Igal T):
Header:

Read more: Helper Code