X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fgeneral%2FClock.java;fp=support%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fgeneral%2FClock.java;h=e5510edaf32bc26d6e87539744317885c7aa540b;hb=7a50a63b1ae202af13f0475cc8a9d3cd93d3c41f;hp=0000000000000000000000000000000000000000;hpb=757e223ab04142b7ba937bd71d2cbc9631bb5a56;p=utils diff --git a/support/general/src/main/java/org/wamblee/general/Clock.java b/support/general/src/main/java/org/wamblee/general/Clock.java new file mode 100644 index 00000000..e5510eda --- /dev/null +++ b/support/general/src/main/java/org/wamblee/general/Clock.java @@ -0,0 +1,29 @@ +/* + * Copyright 2005-2010 the original author or authors. + * + * 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 org.wamblee.general; + +/** + * Clock abstraction for {@link System#currentTimeMillis()}. + * + * @author Erik Brakkee + */ +public interface Clock { + + /** + * @return Current time. + */ + long currentTimeMillis(); +}