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:
Ian Gudger
2019-05-03 21:01:42 -07:00
committed by Shentubot
parent 9e1c253fe8
commit b4a9f18687
+1 -1
View File
@@ -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.