edu.rit.m2mi.test
Class CountdownImpl01

java.lang.Object
  extended by edu.rit.m2mi.test.CountdownImpl01
All Implemented Interfaces:
Countdown

public class CountdownImpl01
extends Object
implements Countdown

Class CountdownImpl01 provides an exported object used to measure M2MI invocation timing.

When constructed, the object records the system clock and the initial counter value. Thereafter, each time countdown() is invoked, the object re-invokes countdown() on an omnihandle for interface Countdown with a counter value one smaller. When the counter goes to zero, the object measures the system clock again and prints out the timing measurements.


Constructor Summary
CountdownImpl01(int n)
          Construct a new countdown object and start timing measurements.
 
Method Summary
 void countdown(int i)
          Countdown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountdownImpl01

public CountdownImpl01(int n)
Construct a new countdown object and start timing measurements.

Parameters:
n - Initial counter.
Method Detail

countdown

public void countdown(int i)
Countdown.

Specified by:
countdown in interface Countdown
Parameters:
i - Counter value.


Copyright © 2001-2006 by Alan Kaminsky. All rights reserved. Send comments to ark­@­cs.rit.edu.