1 | public class |
2 | CountClient extends Applet { |
3 | ................... Method to Initialize .................... |
4 | private void connectToCountObject() { |
5 | // Initialize the ORB. |
6 | org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(this); |
7 | // Calculate Start time |
8 | long startTime = System.currentTimeMillis(); |
9 | counter = Counter.CountHelper.bind(orb, "Counter"); |
10 | long stopTime = System.currentTimeMillis(); |
11 | System.out.println("Avg time to setup Orblet = " |
12 | + ((stopTime - startTime)/1000f) + " secs"); |
13 | } |
14 | } |