Opened 11 years ago
Last modified 10 years ago
#5947 assigned Feature Requests
Use CLOCK_PROCESS_CPUTIME_ID on platform providing them
Reported by: | viboes | Owned by: | viboes |
---|---|---|---|
Milestone: | To Be Determined | Component: | chrono |
Version: | Boost 1.47.0 | Severity: | Optimization |
Keywords: | Cc: |
Description
The posix implementation of process real cpu clock uses the times() function. The resolution is better if we use
::clock_gettime( CLOCK_PROCESS_CPUTIME_ID, &ts );
on platforms for which the CLOCK_PROCESS_CPUTIME_ID is supported.
Note:
See TracTickets
for help on using tickets.