github.com/hamba/timex@v1.2.1-0.20240304044353-56d3de3a9ed9/time.go (about) 1 // Package timex provides a fast wall clock source. 2 package timex 3 4 import "time" 5 6 // Since is analogous to https://golang.org/pkg/time/#Since. 7 func Since(s int64) time.Duration { 8 return time.Duration(Now() - s) 9 }