github.com/ulule/limiter/v3@v3.11.3-0.20230613131926-4cb9c1da4633/internal/fasttime/fasttime_windows.go (about) 1 //go:build windows 2 3 package fasttime 4 5 import "time" 6 7 // Forked from https://github.com/sethvargo/go-limiter 8 9 // Now returns a monotonic clock value. On Windows, no such clock exists, so we 10 // fallback to time.Now(). 11 func Now() uint64 { 12 return uint64(time.Now().UnixNano()) 13 }