【 在 joel.bbs@bbs.nsysu.edu.tw (小強在我餐盤上) 的大作中提到: 】
: 去翻了函式庫的書...但無找到相關的...
: 只找到取得目前系統上的時間....
: 麻煩知道的大概給個方向....我再去翻書....
: 謝謝....^^
give you an example
clock_t start, end;
start= clock();
foo();
end= clock();
cout << "foo() execute time : " << ( end- start)/
float( CLOCKS_PER_SEC) << "s" << endl;
}
--
KDE Official Site at Taiwan
http://kde.linux.org.tw/index.php
http://www.linux.org.tw/mailman/listinfo/kde
KDE Mailling list <kde SmallMouse linux.org.tw>
IRC: server - irc.tw.freebsd.org 6668 #KDE-TW
╭┬╮
│┴│╭─﹏﹏────────────── Web bbs http://bbs.ice.cycu.edu.tw
└┬┘│中原資工神秘之旅 Post by AceLan │
╰﹏╯ From:linux3.cc.ntu.edu.tw ╰﹏﹏﹏bbs.ice.cycu.edu.tw﹏﹏Ω