From 369581976a65adf4068c3e955eb871949d5cc1d2 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Thu, 27 Jun 2024 01:00:58 +0800 Subject: [PATCH] c/time fix --- c/time/time.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c/time/time.go b/c/time/time.go index cac6aa8d..99c6471b 100644 --- a/c/time/time.go +++ b/c/time/time.go @@ -97,16 +97,16 @@ const ( // like CLOCK_MONOTONIC_RAW, but reads a value cached by the system at context switch. This can be // read faster, but at a loss of accuracy as it may return values that are milliseconds old. - CLOCK_MONOTONIC_RAW_APPROX = ClockidT(C.CLOCK_MONOTONIC_RAW_APPROX) + // CLOCK_MONOTONIC_RAW_APPROX = ClockidT(C.CLOCK_MONOTONIC_RAW_APPROX) // clock that increments monotonically, in the same manner as CLOCK_MONOTONIC_RAW, but that does // not increment while the system is asleep. The returned value is identical to the result of // mach_absolute_time() after the appropriate mach_timebase conversion is applied. - CLOCK_UPTIME_RAW = ClockidT(C.CLOCK_UPTIME_RAW) + // CLOCK_UPTIME_RAW = ClockidT(C.CLOCK_UPTIME_RAW) // like CLOCK_UPTIME_RAW, but reads a value cached by the system at context switch. This can be read // faster, but at a loss of accuracy as it may return values that are milliseconds old. - CLOCK_UPTIME_RAW_APPROX = ClockidT(C.CLOCK_UPTIME_RAW_APPROX) + // CLOCK_UPTIME_RAW_APPROX = ClockidT(C.CLOCK_UPTIME_RAW_APPROX) // clock that tracks the amount of CPU (in user- or kernel-mode) used by the calling process. CLOCK_PROCESS_CPUTIME_ID = ClockidT(C.CLOCK_PROCESS_CPUTIME_ID)