mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Changed the root package from net.sf.briar to org.briarproject.
This commit is contained in:
14
briar-api/src/org/briarproject/api/system/Clock.java
Normal file
14
briar-api/src/org/briarproject/api/system/Clock.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package org.briarproject.api.system;
|
||||
|
||||
/**
|
||||
* An interface for time-related system functions that allows them to be
|
||||
* replaced for testing.
|
||||
*/
|
||||
public interface Clock {
|
||||
|
||||
/** @see {@link java.lang.System#currentTimeMillis()} */
|
||||
long currentTimeMillis();
|
||||
|
||||
/** @see {@link java.lang.Thread.sleep(long)} */
|
||||
void sleep(long milliseconds) throws InterruptedException;
|
||||
}
|
||||
Reference in New Issue
Block a user