3 ms·
It is indeed nanosecond precision. http://golang.org/pkg/time/#Time http://golang.org/pkg/time/#Time
by omni 12y ago
It is indeed nanosecond precision. http://golang.org/pkg/time/#Time http://golang.org/pkg/time/#Time
- danbruc 12y agoThe 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...