[問題] 有關於Visual C++之下user time的抓取

看板Programming作者 (liangbi)時間16年前 (2008/08/07 11:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
請問一下, 如何在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
文章代碼(AID): #18ccNlxG (Programming)