aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/time.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2019-09-01 10:49:27 -0400
committerAustin Clements <austin@google.com>2019-09-04 17:56:53 +0000
commit5ff38e476177ce9e67375bd010bea2e030f2fe19 (patch)
tree3bb691344e33a5435c67a24e49e5d44da67c14e3 /src/runtime/time.go
parent0607cdda6b9f978b268464e9a42630c702dbd833 (diff)
downloadgo-5ff38e476177ce9e67375bd010bea2e030f2fe19.tar.gz
go-5ff38e476177ce9e67375bd010bea2e030f2fe19.zip
runtime: platform-independent faketime support
This adds a platform-independent implementation of nacl's faketime support. It can be enabled by setting the faketime build tag. Updates #30439. Change-Id: Iee097004d56d796e6d2bfdd303a092c067ade87e Reviewed-on: https://go-review.googlesource.com/c/go/+/192740 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/time.go')
-rw-r--r--src/runtime/time.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/runtime/time.go b/src/runtime/time.go
index 28a4722866..ac2a9aae8f 100644
--- a/src/runtime/time.go
+++ b/src/runtime/time.go
@@ -71,9 +71,6 @@ type timersBucket struct {
t []*timer
}
-// nacl fake time support - time in nanoseconds since 1970
-var faketime int64
-
// Package time APIs.
// Godoc uses the comments in package time, not these.