المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : C++ Q&A: Performance Monitoring, Managed Extensions, and Lock Toolbars



C++ Programming
03-29-2009, 02:42 AM
In the June 2004 issue of MSDN®Magazine, I described a class called ShowTime that you can use to do simple performance monitoring for your app. ShowTime uses its constructor/destructor to record the start/stop times of its existence so you can instantiate it in a block of code like so: { ShowTime st(_T("Total time is:")); // some lengthy operation } .

Paul DiLascia

<a href="http://msdn.microsoft.com/magazine/16f07825-04b3-4ef1-a5cd-d7cfcaea9370">MSDN Magazine September 2004