作者liangbi (liangbi)
站内Programming
标题[问题] 有关於Visual C++之下user time的抓取
时间Thu Aug 7 11:03:10 2008
请问一下, 如何在Visual C++之下一个process的user time的抓取?
不要是整体的CPU time而是纯 "user" time.
在GNU 当中的/sys/times.h 有提供如下. 分别抓 user time 及 system time, 但是这是在Linux底下的, 而我希望的是能在windows的环境上分析
clock_t tms_utime
This is the CPU time used in executing the instructions of the calling process.
clock_t tms_stime
This is the CPU time used by the system on behalf of the calling process.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.117.168.182