package rmi.rmiSynth;

public class LocalServer {

  public void hello() {
    System.out.println("Hello");
  }

  public String getHello() {
    return "Hello world";
  }

  public long getBenchMark() {
    long starttime, endtime;
    starttime = System.currentTimeMillis();
    multiplyBench(10000000);
    endtime = System.currentTimeMillis();
    return (endtime - starttime);
  }

  public void multiplyBench(long range) {
    long i, product;
    int d1, d2;
    d1 = 2;
    d2 = 3;
    for (i = 0; i < range; i++)
      product = d1 * d2;
  }
}