Changeset 34626 in vbox
- Timestamp:
- Dec 2, 2010 4:44:03 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68428
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/thread-posix.cpp
r34289 r34626 413 413 RTR3DECL(int) RTThreadGetExecutionTimeMilli(uint64_t *pKernelTime, uint64_t *pUserTime) 414 414 { 415 return VERR_NOT_IMPLEMENTED; 416 } 415 struct timespec ts; 416 int rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); 417 if (rc) 418 return RTErrConvertFromErrno(rc); 419 420 *pKernelTime = 0; 421 *pUserTime = (uint64_t)ts.tv_sec * 1000 + ts.tv_nsec / 1000000; 422 return VINF_SUCCESS; 423 } -
trunk/src/VBox/Runtime/testcase/Makefile.kmk
r34464 r34626 110 110 tstThread-1 \ 111 111 tstRTThreadPoke \ 112 tstRTThreadExecutionTime \ 112 113 tstTime \ 113 114 tstTime-2 \ … … 465 466 tstRTThreadPoke_SOURCES = tstRTThreadPoke.cpp 466 467 468 tstRTThreadExecutionTime_TEMPLATE = VBOXR3TSTEXE 469 tstRTThreadExecutionTime_SOURCES = tstRTThreadExecutionTime.cpp 470 467 471 tstTime_SOURCES = tstTime.cpp 468 472
Note:
See TracChangeset
for help on using the changeset viewer.