From 3d98b3307655151b368c92afc2f0e5b578e6657f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 9 Apr 2024 08:39:42 +0530 Subject: [PATCH] ... --- tools/utils/clock_without_raw.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tools/utils/clock_without_raw.go b/tools/utils/clock_without_raw.go index 2cb7444d5..b9d63b24d 100644 --- a/tools/utils/clock_without_raw.go +++ b/tools/utils/clock_without_raw.go @@ -4,15 +4,8 @@ package utils import ( "time" - - "golang.org/x/sys/unix" ) func MonotonicRaw() (time.Time, error) { - ts := unix.Timespec{} - if err := unix.ClockGettime(unix.CLOCK_MONOTONIC, &ts); err != nil { - return time.Time{}, err - } - s, ns := ts.Unix() - return time.Unix(s, ns), nil + return time.Now(), nil }