|
From: | Zhaoming Luo |
Subject: | Re: [PATCH Mach] kern: Add a mach host operation which returns elapsed time since bootup |
Date: | Wed, 1 Jan 2025 07:44:59 +0800 |
User-agent: | Mozilla Thunderbird |
On 12/31/24 7:33 AM, Samuel Thibault wrote:
Zhaoming Luo, le mar. 31 déc. 2024 07:24:08 +0800, a ecrit:On 12/29/24 5:21 PM, Samuel Thibault wrote:Zhaoming Luo, le dim. 29 déc. 2024 12:44:27 +0800, a ecrit:On 12/29/24 9:28 AM, Samuel Thibault wrote:Hello, Zhaoming Luo, le mar. 24 déc. 2024 09:57:51 +0800, a ecrit:Add host_get_uptime64() mach interface operation. It can be used to get the time passed since the boot up. * doc/mach.texi: Add the documentation for the operation * include/mach/mach_host.defs: Add the interface * include/mach/time_value.h: Extend the mappable time variable * kern/mach_clock.c: Operation implementation * kern/mach_clock.h: Add a new variable for storing uptimeApplied, thanks! The glibc part is now needed in clock_gettimeDo you mean adding CLOCK_MONOTONIC case in clock_gettime()?Yes.Does it worth to expose the CLOCK_MONOTONIC part in /dev/time device?It already is through extending mapped_time_value, isn't it?
Ah indeed. My bad. It has already be extended. -- Zhaoming Luo
[Prev in Thread] | Current Thread | [Next in Thread] |