VirtualBox

Changeset 34628 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Dec 2, 2010 5:00:04 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68430
Message:

clock_gettime not on Darwin

File:
1 edited

Legend:

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

    r34626 r34628  
    413413RTR3DECL(int) RTThreadGetExecutionTimeMilli(uint64_t *pKernelTime, uint64_t *pUserTime)
    414414{
     415#ifndef RT_OS_DARWIN
    415416    struct timespec ts;
    416417    int rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts);
     
    421422    *pUserTime = (uint64_t)ts.tv_sec * 1000 + ts.tv_nsec / 1000000;
    422423    return VINF_SUCCESS;
    423 }
     424#else
     425    return VERR_NOT_IMPLEMENTED;
     426#endif
     427}
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