VirtualBox

Changeset 32914 in vbox for trunk/src/VBox/Runtime/r3/win


Ignore:
Timestamp:
Oct 5, 2010 1:25:58 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66397
Message:

Drop the hthread parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/thread-win.cpp

    r32907 r32914  
    224224
    225225
    226 RTR3DECL(int) RTThreadGetExecutionTimeMilli(RTTHREAD hThread, uint64_t *pKernelTime, uint64_t *pUserTime)
     226RTR3DECL(int) RTThreadGetExecutionTimeMilli(uint64_t *pKernelTime, uint64_t *pUserTime)
    227227{
    228228    uint64_t u64CreationTime, u64ExitTime, u64KernelTime, u64UserTime;
    229229
    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))
    231231    {
    232232        *pKernelTime = u64KernelTime / 10000;    /* GetThreadTimes returns time in 100 ns units */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette