From b4a9f186872d6687f34e609a39aa10eb33cce1d2 Mon Sep 17 00:00:00 2001 From: Ian Gudger Date: Fri, 3 May 2019 21:00:29 -0700 Subject: 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 --- pkg/tcpip/tcpip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go index 9367c8c02..c8164c0f0 100644 --- a/pkg/tcpip/tcpip.go +++ b/pkg/tcpip/tcpip.go @@ -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. -- cgit v1.2.3