风之空灵
技术笔记---记载学到技术的点点滴滴
9/29/2009
timer in c++
include ctime, iostream, iomanip
using namespace std;
int main()
{
time_t tstart, tend;
tstart = time(0);
//your scripts
//
//end
tend = time(0);
then output the result of
difftime(tend, tstart)
}
* the colored lines means it is not the standard c++ format because of the editor of the google blog
没有评论:
发表评论
较新的博文
较早的博文
主页
订阅:
博文评论 (Atom)
没有评论:
发表评论