summaryrefslogtreecommitdiff
path: root/vendor/github.com/jackc/puddle/v2/nanotime.go
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2025-07-22 07:50:24 +0000
committerFelix Hanley <felix@userspace.com.au>2025-07-22 07:50:24 +0000
commitfaa33e32b5e967fdfeac96bfc39ed3d94f9514ac (patch)
treeb7605c2443a054daf1dfceca2d415d5b86445166 /vendor/github.com/jackc/puddle/v2/nanotime.go
parentf82adc0030a993ff25cbf70cf81d75900f455e6a (diff)
downloadcaddy-faa33e32b5e967fdfeac96bfc39ed3d94f9514ac.tar.gz
caddy-faa33e32b5e967fdfeac96bfc39ed3d94f9514ac.tar.bz2
Upgrade to caddy v2.10.0
Diffstat (limited to 'vendor/github.com/jackc/puddle/v2/nanotime.go')
-rw-r--r--vendor/github.com/jackc/puddle/v2/nanotime.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/vendor/github.com/jackc/puddle/v2/nanotime.go b/vendor/github.com/jackc/puddle/v2/nanotime.go
deleted file mode 100644
index 8a5351a..0000000
--- a/vendor/github.com/jackc/puddle/v2/nanotime.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package puddle
-
-import "time"
-
-// nanotime returns the time in nanoseconds since process start.
-//
-// This approach, described at
-// https://github.com/golang/go/issues/61765#issuecomment-1672090302,
-// is fast, monotonic, and portable, and avoids the previous
-// dependence on runtime.nanotime using the (unsafe) linkname hack.
-// In particular, time.Since does less work than time.Now.
-func nanotime() int64 {
- return time.Since(globalStart).Nanoseconds()
-}
-
-var globalStart = time.Now()