xtime

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

README

Benchmark

NowNano()

ok      github.com/samber/ro   0.182s
goos: darwin
goarch: arm64
pkg: github.com/samber/ro/bench
cpu: Apple M3
BenchmarkDevelTime/TimeGo-8                             10000000                35.66 ns/op            0 B/op          0 allocs/op
BenchmarkDevelTime/TimeRuntimeMonotonicTime-8           10000000                12.38 ns/op            0 B/op          0 allocs/op

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NowNanoMonotonic

func NowNanoMonotonic() int64

NowNanoMonotonic returns the current time in nanoseconds. It is approximately 3 times faster than time.Now() for high-frequency operations.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL