vendor: update dependencies with github.com/kardianos/govendor
This commit is contained in:
7
vendor/github.com/aristanetworks/goarista/monotime/nanotime.go
generated
vendored
7
vendor/github.com/aristanetworks/goarista/monotime/nanotime.go
generated
vendored
@@ -6,6 +6,7 @@
|
||||
package monotime
|
||||
|
||||
import (
|
||||
"time"
|
||||
_ "unsafe" // required to use //go:linkname
|
||||
)
|
||||
|
||||
@@ -22,3 +23,9 @@ func nanotime() int64
|
||||
func Now() uint64 {
|
||||
return uint64(nanotime())
|
||||
}
|
||||
|
||||
// Since returns the amount of time that has elapsed since t. t should be
|
||||
// the result of a call to Now() on the same machine.
|
||||
func Since(t uint64) time.Duration {
|
||||
return time.Duration(Now() - t)
|
||||
}
|
||||
|
Reference in New Issue
Block a user