diff options
author | 2017-09-06 12:52:21 +0200 | |
---|---|---|
committer | 2017-09-06 13:38:11 +0200 | |
commit | 3bcb9f60a3c605102c12556fc10c239aaf64266a (patch) | |
tree | fa1d953a966f6fd5bdcf97a1cba38fe539f5f12e /src/main/java/com/google/devtools/build/lib/util/Clock.java | |
parent | 3da30befb83121f5c4ff14eb7c0114b5f6b5c36c (diff) |
More BUILD file refactorings.
Split collect, concurrent, vfs, windows into package-level BUILD files.
Move clock classes out of "util", into their own Java package.
Move CompactHashSet into its own Java package to break a dependency cycle.
Give nestedset and inmemoryfs their own package-level BUILD files.
PiperOrigin-RevId: 167702127
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/util/Clock.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/util/Clock.java | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/util/Clock.java b/src/main/java/com/google/devtools/build/lib/util/Clock.java deleted file mode 100644 index dcc510074f..0000000000 --- a/src/main/java/com/google/devtools/build/lib/util/Clock.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2014 The Bazel Authors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -package com.google.devtools.build.lib.util; - -/** - * This class provides an interface for a pluggable clock. - */ -public interface Clock { - - /** - * Returns the current time in milliseconds. The milliseconds are counted from midnight - * Jan 1, 1970. - */ - long currentTimeMillis(); - - /** - * Returns the current time in nanoseconds. The nanoseconds are measured relative to some - * unknown, but fixed event. Unfortunately, a sequence of calls to this method is *not* - * guaranteed to return non-decreasing values, so callers should be tolerant to this behavior. - */ - long nanoTime(); -} |