FileDocCategorySizeDatePackage
DisplayPerfectTime.javaAPI DocExample2920Mon Apr 06 18:10:20 BST 1998c15.ptime

DisplayPerfectTime

public class DisplayPerfectTime extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    System.setSecurityManager(
      new RMISecurityManager());
    try {
      PerfectTimeI t = 
        (PerfectTimeI)Naming.lookup(
          "//colossus:2005/PerfectTime");
      for(int i = 0; i < 10; i++)
        System.out.println("Perfect time = " +
          t.getPerfectTime());
    } catch(Exception e) {
      e.printStackTrace();
    }