]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix calculation of system time in performance tests
authorJonathan Wakely <jwakely@redhat.com>
Wed, 13 Nov 2024 16:47:04 +0000 (16:47 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 13 Nov 2024 20:21:38 +0000 (20:21 +0000)
commit19d0720f68c2617f1b9b686d3884333b60ca75da
treef97be3d98a0906b99891861bfb0d0f7acf7ddd4d
parentde10b4fc49516e393947c3d6c16de5703e5b2052
libstdc++: Fix calculation of system time in performance tests

The system_time() function used the wrong element of the splits array.

Also add a comment about the units for time measurements.

libstdc++-v3/ChangeLog:

* testsuite/util/testsuite_performance.h (time_counter): Add
comment about times.
(time_counter::system_time): Use correct split value.
libstdc++-v3/testsuite/util/testsuite_performance.h