5 ms·
The value is represented with nanosecond resolution, but that does not imply that Now() will return a different value every nanosecond.
by danbruc 12y ago
The value is represented with nanosecond resolution, but that does not imply that Now() will return a different value every nanosecond.
- omni 12y agoYou are of course technically correct. It seems the precision returned by Now may be platform-dependent. https://github.com/golang/go/blob/master/src/time/time.go#L777 https://github.com/golang/go/blob/master/src/time/time.go#L7...