github.com/sethvargo/go-limiter@v1.0.0/internal/fasttime/fasttime_windows.go (about)

     1  //go:build windows
     2  
     3  package fasttime
     4  
     5  import "time"
     6  
     7  // Now returns a monotonic clock value. On Windows, no such clock exists, so we
     8  // fallback to time.Now().
     9  func Now() uint64 {
    10  	return uint64(time.Now().UnixNano())
    11  }