VirtualBox

Changeset 99901 in vbox for trunk/include


Ignore:
Timestamp:
May 22, 2023 2:15:10 PM (19 months ago)
Author:
vboxsync
Message:

IPRT: Cleaned up RTThreadGetExecutionTimeMilli and associated testcase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/thread.h

    r99739 r99901  
    900900
    901901/**
    902  * Get the execution times of the specified thread
    903  *
    904  * @returns IPRT status code.
    905  * @param   pKernelTime         Kernel execution time in ms (out)
    906  * @param   pUserTime           User execution time in ms (out)
    907  *
    908  */
    909 RTR3DECL(int) RTThreadGetExecutionTimeMilli(uint64_t *pKernelTime, uint64_t *pUserTime);
     902 * Get the execution times of the calling thread.
     903 *
     904 * @returns IPRT status code.
     905 * @retval  VERR_NOT_IMPLEMENTED if not implemented/supported.
     906 *
     907 * @param[out]  pcMsKernelTime  Kernel execution time in ms (out).
     908 * @param[out]  pcMsUserTime    User execution time in ms (out).
     909 *
     910 * @remarks Linux and FreeBSD is currently reporting both kernel and user time
     911 *          together via @a *pcMsUserTime and @a *pcMsKernelTime will always be
     912 *          set to zero.
     913 */
     914RTR3DECL(int) RTThreadGetExecutionTimeMilli(uint64_t *pcMsKernelTime, uint64_t *pcMsUserTime);
     915
    910916
    911917/** @name Thread Local Storage
Note: See TracChangeset for help on using the changeset viewer.

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