github.com/muyo/sno@v1.2.1/internal/time_linux_amd64.go (about) 1 //go:build go1.17 2 // +build go1.17 3 4 package internal 5 6 import "time" 7 8 // Snotime returns the current wall clock time reported by the OS as adjusted to our internal epoch. 9 func Snotime() uint64 { 10 return uint64(time.Now().UnixNano()-epochNsec) / timeUnit 11 }