From b9fac7973739c8aa1bda076dd7ee91e74a2625e2 Mon Sep 17 00:00:00 2001 From: Etienne Perot Date: Thu, 27 Jun 2024 17:34:25 -0700 Subject: [PATCH] Fix comment for `CheapNowNano`. PiperOrigin-RevId: 647498384 --- pkg/metric/metric_unsafe.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/metric/metric_unsafe.go b/pkg/metric/metric_unsafe.go index 06c043e2a..4a9a67dd2 100644 --- a/pkg/metric/metric_unsafe.go +++ b/pkg/metric/metric_unsafe.go @@ -46,7 +46,9 @@ func snapshotDistribution(samples []atomicbitops.Uint64) []uint64 { return snapshot } -// CheapNowNano returns the current unix timestamp in nanoseconds. +// CheapNowNano returns the a timestamp in nanoseconds. +// It is *NOT* measured from the Unix epoch. +// It is monotonic. // //go:nosplit func CheapNowNano() int64 {