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 StopwatchBenchmarking in C++ can be done using the following code (courtesy of Igal T):Header:
Read more: Helper Code
Read more: Helper Code
0 comments:
Post a Comment