摘要: 在编写程序的时候很多种情况下我们都需要计时,比如我们在测试软件的性能时,或者一个和时间有关的软件时boost.timer就特别有用,boost.timer 提供两个类cpu_timer 和 auto_cpu_timer,它们都包含在boost::timer命名空间内。auto_cpu_timer废话不多说先看一个例子://ifonwin32thismaketheprogramautolinktodynmelibrary#defineBOOST_ALL_DYN_LINK#include<boost/timer/timer.hpp>voidfunc(somearguments){... 阅读全文
posted @ 2012-07-31 13:17 做一个内心安静的人 阅读(7422) 评论(0) 推荐(0) 编辑