]> Cypherpunks repositories - gostls13.git/commit
runtime: use clock_gettime for time.now() on s390x
authorMichael Munday <munday@ca.ibm.com>
Wed, 24 Aug 2016 21:44:27 +0000 (17:44 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 25 Aug 2016 02:05:31 +0000 (02:05 +0000)
commit61d5daea0aca4fcb14f0090685327132a8e1a7f2
treec7774403606e79abae2a0545979fa60ffed4f68f
parent3167ff7ca91b56f3d06c5cda371b2a7c2741cd35
runtime: use clock_gettime for time.now() on s390x

This should improve the precision of time.now() from microseconds
to nanoseconds.

Also, modify runtime.nanotime to keep it consistent with cleanup
done to time.now.

Updates #11222 for s390x.

Change-Id: I27864115ea1fee7299360d9003cd3a8355f624d3
Reviewed-on: https://go-review.googlesource.com/27710
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/sys_linux_s390x.s