Re: The return value of the system call "times" are in clock ticks?
From: Xiang Gao
Date: Wed Jan 13 2016 - 01:25:13 EST
Sorry for the confusing title. I mean the reported values in the
parameter struct tms *buf, not the returned value.
Xiang Gao
2016-01-13 1:20 GMT-05:00 Xiang Gao <qasdfgtyuiop@xxxxxxxxx>:
> Hi,
>
> In the man page of the system call "times", i.e. "man 2 times", it says that
> "All times reported are in clock ticks."
>
> However, it seems not in the kernel. In my personal computer, it is in
> seconds...
>
> I don't know what it is supposed to be. If it is supposed to be in
> clock ticks, here is a patch attached that fix this problem. If it is
> not supposed to be in clock ticks, then the corresponding man page
> should be changed.
>
> Xiang Gao