aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/timeasm.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-10-31 17:27:16 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-11-02 12:50:03 +0000
commita1ee0a21cfd3d44f4585c1eb57698460abbfc7f1 (patch)
tree6e7c8995841135b34540f25eac5a4a08e18e34ce /src/runtime/timeasm.go
parenta86f549703c107c8b4d83d8e7527521c9e215d9a (diff)
downloadgo-a1ee0a21cfd3d44f4585c1eb57698460abbfc7f1.tar.gz
go-a1ee0a21cfd3d44f4585c1eb57698460abbfc7f1.zip
runtime, time: refactor startNano handling
Move startNano from runtime to time package. In preparation for a subsequent change that speeds up Since and Until. This also makes code simpler as we have less assembly as the result, monotonic time handling is better localized in time package. This changes values returned from nanotime on windows (it does not account for startNano anymore), current comments state that it's important, but it's unclear how it can be important since no other OS does this. Update #25729 Change-Id: I2275d57b7b5ed8fd0d53eb0f19d55a86136cc555 Reviewed-on: https://go-review.googlesource.com/c/146340 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/timeasm.go')
-rw-r--r--src/runtime/timeasm.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/timeasm.go b/src/runtime/timeasm.go
index 5af920c18c..82cf63edff 100644
--- a/src/runtime/timeasm.go
+++ b/src/runtime/timeasm.go
@@ -3,8 +3,6 @@
// license that can be found in the LICENSE file.
// Declarations for operating systems implementing time.now directly in assembly.
-// Those systems are also expected to have nanotime subtract startNano,
-// so that time.now and nanotime return the same monotonic clock readings.
// +build windows