summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2023-11-14 17:14:24 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2023-11-29 16:24:05 +0100
commit4366487e79f84fb381e33207cbc7c28107aea561 (patch)
tree9946ee4ea6f0598f628e33a5e90138327e7b9040 /tests/benchmarks
parent4cb9bbbf02c8bf682075b093725e3b32f0d97c33 (diff)
Change POSIX current time query to use clock_gettime()
As noted on its man-page, POSIX.1-2008 marks gettimeofday() as obsolete, recommending the use of clock_gettime(2) instead. So do that. Also check the return value - albeit all we can do on failure (which should not happen) is assert. Pick-to: 6.6 6.5 Change-Id: Id5d6922c974b87f09531d549d692b051c32388ee Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/benchmarks')
0 files changed, 0 insertions, 0 deletions