getrusage(2) time precision is 1 ms, not 1 μs
#1
The ru_utime.tv_usec member of the rusage structure for the getrusage(2) system call with RUSAGE_SELF manifest constant returns times that are multiple of 1000 with the Ayufan's kernel. That is, their precision is 1 ms, not 1 μs as for example for the BCM2708, A10, H3, BCM2837 and EX5422 SoC. I haven't studied the manual of the RK3399, but it seems very unlikely that it doesn't have a high-precision timer (counter), if all these SoC's have one. Is it possible to support it in the future kernel releases in order to obtain the aforementioned microsecond time precision? Thanks in advance!


Possibly Related Threads…
Thread Author Replies Views Last Post
  ayufan's bionic minimal boots only the first time fczuardi 6 6,638 09-10-2018, 01:07 PM
Last Post: dukla2000

Forum Jump:


Users browsing this thread: 1 Guest(s)