Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3599)

Unified Diff: go/src/infra/libs/clock/systemclock.go

Issue 1223213002: Remove libs/clock in favor of luci-go/common/clock. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@abstract
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « go/src/infra/libs/clock/context.go ('k') | go/src/infra/libs/clock/systemtimer.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/libs/clock/systemclock.go
diff --git a/go/src/infra/libs/clock/systemclock.go b/go/src/infra/libs/clock/systemclock.go
deleted file mode 100644
index b5384a411fed547f99b9067c52abd09f2d2b38b6..0000000000000000000000000000000000000000
--- a/go/src/infra/libs/clock/systemclock.go
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package clock
-
-import (
- "time"
-)
-
-// Implementation of Clock that uses Go's standard library.
-type systemClock struct{}
-
-// System clock instance.
-var systemClockInstance systemClock
-
-var _ Clock = systemClock{}
-
-// GetSystemClock returns an instance of a Clock whose method calls directly use
-// Go's "time" library.
-func GetSystemClock() Clock {
- return systemClockInstance
-}
-
-func (systemClock) Now() time.Time {
- return time.Now()
-}
-
-func (systemClock) Sleep(d time.Duration) {
- time.Sleep(d)
-}
-
-func (systemClock) NewTimer() Timer {
- return new(systemTimer)
-}
-
-func (systemClock) After(d time.Duration) <-chan time.Time {
- return time.After(d)
-}
« no previous file with comments | « go/src/infra/libs/clock/context.go ('k') | go/src/infra/libs/clock/systemtimer.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698