diff options
author | Ian Gudger <igudger@google.com> | 2019-05-03 21:00:29 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-05-03 21:01:42 -0700 |
commit | b4a9f186872d6687f34e609a39aa10eb33cce1d2 (patch) | |
tree | 8d4613f6d40ed664dcd39e85fead308680bfb2b0 /pkg/tcpip/tcpip.go | |
parent | 9e1c253fe814c85a316520bd6bd258adaa71df79 (diff) |
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
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r-- | pkg/tcpip/tcpip.go | 2 |
1 files changed, 1 insertions, 1 deletions
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. |