This is a mirror of official site: http://jasper-net.blogspot.com/

Poor C++ developer’s performance profiler

| Thursday, June 3, 2010
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++.

The unmanaged Stopwatch

Benchmarking in C++ can be done using the following code (courtesy of Igal T):

Header:

sourcecode_2109EDD0.png

Read more: Helper Code

Posted via email from jasper22's posterous

0 comments: