Opened 9 years ago
Closed 9 years ago
#9337 closed Bugs (fixed)
chrono::process_cpu_clock time points wrong by factor 1000 on Linux
| Reported by: | Owned by: | viboes | |
|---|---|---|---|
| Milestone: | Boost 1.56.0 | Component: | chrono |
| Version: | Boost Development Trunk | Severity: | Problem |
| Keywords: | Cc: |
Description
The time point returned by boost::chrono::process_cpu_clock::now() is on Linux by a factor of 1000 to large. Measuring the duration between a sleep of e.g. 1 second returns
{1000000000000;0;0} nanoseconds
All other process clocks (process_real_cpu_clock, process_user_cpu_clock, process_system_cpu_clock) are fine!
Test program and patch attached.
Attachments (3)
Change History (8)
by , 9 years ago
comment:1 by , 9 years ago
Sorry, the first patch file is missing something. Please use patchfile.2.patch
comment:2 by , 9 years ago
| Status: | new → assigned |
|---|
Thanks for catching this. The bug was introduced on [75920].
comment:4 by , 9 years ago
| Milestone: | To Be Determined → Boost 1.56.0 |
|---|
comment:5 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Committed revision [86655].
Note:
See TracTickets
for help on using tickets.

test program