Boost C++ Libraries: Ticket #9337: chrono::process_cpu_clock time points wrong by factor 1000 on Linux https://svn.boost.org/trac10/ticket/9337 <p> 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 </p> <p> {1000000000000;0;0} nanoseconds </p> <p> All other process clocks (process_real_cpu_clock, process_user_cpu_clock, process_system_cpu_clock) are fine! </p> <p> Test program and patch attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9337 Trac 1.4.3 Markus Friedrich <friedrich.at.gc@…> Sun, 03 Nov 2013 12:50:16 GMT attachment set https://svn.boost.org/trac10/ticket/9337 https://svn.boost.org/trac10/ticket/9337 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cc</span> </li> </ul> <p> test program </p> Ticket Markus Friedrich <friedrich.at.gc@…> Sun, 03 Nov 2013 12:50:42 GMT attachment set https://svn.boost.org/trac10/ticket/9337 https://svn.boost.org/trac10/ticket/9337 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patchfile.patch</span> </li> </ul> <p> patch </p> Ticket Markus Friedrich <friedrich.at.gc@…> Sun, 03 Nov 2013 12:52:08 GMT attachment set https://svn.boost.org/trac10/ticket/9337 https://svn.boost.org/trac10/ticket/9337 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patchfile.2.patch</span> </li> </ul> <p> patch </p> Ticket Markus Friedrich <friedrich.at.gc@…> Sun, 03 Nov 2013 12:53:40 GMT <link>https://svn.boost.org/trac10/ticket/9337#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9337#comment:1</guid> <description> <p> Sorry, the first patch file is missing something. Please use patchfile.2.patch </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 03 Nov 2013 14:58:20 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/9337#comment:2 https://svn.boost.org/trac10/ticket/9337#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Thanks for catching this. The bug was introduced on <a class="changeset" href="https://svn.boost.org/trac10/changeset/75920" title="Chrono: process_cpu_clock::now() on linux gives time_points 1/1000 times">[75920]</a>. </p> Ticket viboes Sun, 03 Nov 2013 15:52:07 GMT <link>https://svn.boost.org/trac10/ticket/9337#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9337#comment:3</guid> <description> <p> Committed revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/86547" title="Chrono: apply patch for #9337.">[86547]</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 05 Nov 2013 05:45:02 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/9337#comment:4 https://svn.boost.org/trac10/ticket/9337#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> Ticket viboes Tue, 12 Nov 2013 21:17:53 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9337#comment:5 https://svn.boost.org/trac10/ticket/9337#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Committed revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/86655" title="Chrono: merge fixe for #9337.">[86655]</a>. </p> Ticket