[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Time/Speed of de/compression summary
From: |
Adam Tuja |
Subject: |
Re: Time/Speed of de/compression summary |
Date: |
Tue, 15 Mar 2022 18:01:13 +0100 |
Thank you for the patch, but it introduces dependencies on things like
clock_t ot CLOCKS_PER_SEC which I'm not sure how portable and problem-free
they are, and just now I have not the time to assess such potential problems
for a minor detail like this.
I see.
I found it in libc manual, CPU time inquiry:
https://www.gnu.org/software/libc/manual/html_node/CPU-Time.html
There is also processor time inquiry (https://www.gnu.org/software/libc/manual/html_node/Processor-Time.html) but it uses clock_t s well.
As forportability, the oldest compilers I have tested were: it is defined in gcc-4.1/glibc-2.5, clang-3.2 (uses libc), mingw since at least mingw-gcc-3.4.2. Arm is using newer compiler/s. I don't have other OSes to test.
If someone wants to test it I attached test file in C.
Regards
cpu_time__clock_t.c
Description: Text Data