11 lines
286 B
Java
11 lines
286 B
Java
|
//: remote/PerfectTimeImpl.java
|
||
|
// The implementation of the PerfectTime
|
||
|
// remote object.
|
||
|
import java.rmi.RemoteException;
|
||
|
|
||
|
public class PerfectTimeImpl implements PerfectTime {
|
||
|
public long getPerfectTime() throws RemoteException {
|
||
|
return System.currentTimeMillis();
|
||
|
}
|
||
|
} ///:~
|