FileDocCategorySizeDatePackage
PerfectTime.javaAPI DocExample3321Mon Apr 06 18:10:20 BST 1998c15.ptime

PerfectTime

public class PerfectTime extends UnicastRemoteObject implements PerfectTimeI

Fields Summary
Constructors Summary
public PerfectTime()

    // super(); // Called automatically
  
Methods Summary
public longgetPerfectTime()

    return System.currentTimeMillis();
  
public static voidmain(java.lang.String[] args)

    System.setSecurityManager(
      new RMISecurityManager());
    try {
      PerfectTime pt = new PerfectTime();
      Naming.bind(
        "//colossus:2005/PerfectTime", pt);
      System.out.println("Ready to do time");
    } catch(Exception e) {
      e.printStackTrace();
    }