mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Update tcpip Clock description.
The tcpip.Clock comment stated that times provided by it should not be used for netstack internal timekeeping. This comment was from before the interface supported monotonic times. The monotonic times that it provides are now be the preferred time source for netstack internal timekeeping. PiperOrigin-RevId: 246618772 Change-Id: I853b720e3d719b03fabd6156d2431da05d354bda
This commit is contained in:
+1
-1
@@ -125,7 +125,7 @@ func (e ErrSaveRejection) Error() string {
|
||||
// A Clock provides the current time.
|
||||
//
|
||||
// Times returned by a Clock should always be used for application-visible
|
||||
// time, but never for netstack internal timekeeping.
|
||||
// time. Only monotonic times should be used for netstack internal timekeeping.
|
||||
type Clock interface {
|
||||
// NowNanoseconds returns the current real time as a number of
|
||||
// nanoseconds since the Unix epoch.
|
||||
|
||||
Reference in New Issue
Block a user