Changeset 32914 in vbox for trunk/src/VBox/Runtime/r3/win
- Timestamp:
- Oct 5, 2010 1:25:58 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 66397
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/thread-win.cpp
r32907 r32914 224 224 225 225 226 RTR3DECL(int) RTThreadGetExecutionTimeMilli( RTTHREAD hThread,uint64_t *pKernelTime, uint64_t *pUserTime)226 RTR3DECL(int) RTThreadGetExecutionTimeMilli(uint64_t *pKernelTime, uint64_t *pUserTime) 227 227 { 228 228 uint64_t u64CreationTime, u64ExitTime, u64KernelTime, u64UserTime; 229 229 230 if (GetThreadTimes( (HANDLE)RTThreadGetNative(hThread), (LPFILETIME)&u64CreationTime, (LPFILETIME)&u64ExitTime, (LPFILETIME)&u64KernelTime, (LPFILETIME)&u64UserTime))230 if (GetThreadTimes(GetCurrentThread(), (LPFILETIME)&u64CreationTime, (LPFILETIME)&u64ExitTime, (LPFILETIME)&u64KernelTime, (LPFILETIME)&u64UserTime)) 231 231 { 232 232 *pKernelTime = u64KernelTime / 10000; /* GetThreadTimes returns time in 100 ns units */
Note:
See TracChangeset
for help on using the changeset viewer.