mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
15 lines
368 B
Java
15 lines
368 B
Java
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;
|
|
}
|