Index: /trunk/include/iprt/thread.h
===================================================================
--- /trunk/include/iprt/thread.h	(revision 32913)
+++ /trunk/include/iprt/thread.h	(revision 32914)
@@ -655,10 +655,9 @@
  *
  * @returns IPRT status code.
- * @param   hThread             The thread handle.
  * @param   pKernelTime         Kernel execution time in ms (out)
  * @param   pUserTime           User execution time in ms (out)
  *
  */
-RTR3DECL(int) RTThreadGetExecutionTimeMilli(RTTHREAD hThread, uint64_t *pKernelTime, uint64_t *pUserTime);
+RTR3DECL(int) RTThreadGetExecutionTimeMilli(uint64_t *pKernelTime, uint64_t *pUserTime);
 
 /** @name Thread Local Storage
Index: /trunk/src/VBox/Runtime/r3/os2/thread-os2.cpp
===================================================================
--- /trunk/src/VBox/Runtime/r3/os2/thread-os2.cpp	(revision 32913)
+++ /trunk/src/VBox/Runtime/r3/os2/thread-os2.cpp	(revision 32914)
@@ -294,5 +294,5 @@
 
 
-RTR3DECL(int) RTThreadGetExecutionTimeMilli(RTTHREAD hThread, uint64_t *pKernelTime, uint64_t *pUserTime)
+RTR3DECL(int) RTThreadGetExecutionTimeMilli(uint64_t *pKernelTime, uint64_t *pUserTime)
 {
     return VERR_NOT_IMPLEMENTED;
Index: /trunk/src/VBox/Runtime/r3/posix/thread-posix.cpp
===================================================================
--- /trunk/src/VBox/Runtime/r3/posix/thread-posix.cpp	(revision 32913)
+++ /trunk/src/VBox/Runtime/r3/posix/thread-posix.cpp	(revision 32914)
@@ -387,5 +387,5 @@
 #endif
 
-RTR3DECL(int) RTThreadGetExecutionTimeMilli(RTTHREAD hThread, uint64_t *pKernelTime, uint64_t *pUserTime)
+RTR3DECL(int) RTThreadGetExecutionTimeMilli(uint64_t *pKernelTime, uint64_t *pUserTime)
 {
     return VERR_NOT_IMPLEMENTED;
Index: /trunk/src/VBox/Runtime/r3/win/thread-win.cpp
===================================================================
--- /trunk/src/VBox/Runtime/r3/win/thread-win.cpp	(revision 32913)
+++ /trunk/src/VBox/Runtime/r3/win/thread-win.cpp	(revision 32914)
@@ -224,9 +224,9 @@
 
 
-RTR3DECL(int) RTThreadGetExecutionTimeMilli(RTTHREAD hThread, uint64_t *pKernelTime, uint64_t *pUserTime)
+RTR3DECL(int) RTThreadGetExecutionTimeMilli(uint64_t *pKernelTime, uint64_t *pUserTime)
 {
     uint64_t u64CreationTime, u64ExitTime, u64KernelTime, u64UserTime;
 
-    if (GetThreadTimes((HANDLE)RTThreadGetNative(hThread), (LPFILETIME)&u64CreationTime, (LPFILETIME)&u64ExitTime, (LPFILETIME)&u64KernelTime, (LPFILETIME)&u64UserTime))
+    if (GetThreadTimes(GetCurrentThread(), (LPFILETIME)&u64CreationTime, (LPFILETIME)&u64ExitTime, (LPFILETIME)&u64KernelTime, (LPFILETIME)&u64UserTime))
     {
         *pKernelTime = u64KernelTime / 10000;    /* GetThreadTimes returns time in 100 ns units */
Index: /trunk/src/VBox/VMM/EM.cpp
===================================================================
--- /trunk/src/VBox/VMM/EM.cpp	(revision 32913)
+++ /trunk/src/VBox/VMM/EM.cpp	(revision 32914)
@@ -1680,5 +1680,5 @@
 
     if (    pVM->uCpuExecutionCap != 100
-        &&  RT_SUCCESS(RTThreadGetExecutionTimeMilli(RTThreadSelf(), &u64KernelTime, &u64UserTime)))
+        &&  RT_SUCCESS(RTThreadGetExecutionTimeMilli(&u64KernelTime, &u64UserTime)))
     {
         uint64_t u64TimeNow = RTTimeMilliTS();
