view src/fdl/test/debug/StartCallback.java @ 119:49e7f02f0063

change timer date from nanoTime
author one
date Wed, 08 Feb 2012 23:04:12 +0900
parents 3b877c9a44f5
children ad73eacf560a
line wrap: on
line source

package fdl.test.debug;

import java.nio.ByteBuffer;
import java.util.Date;

import fdl.PSXCallback;

class StartCallback implements PSXCallback {
	NodeProperty np;
	TreeProperty tp;
	
	public StartCallback(NodeProperty np, TreeProperty tp) {
		this.np = np;
		this.tp = tp;
	}
	
	public void callback(ByteBuffer reply) {
		Debug.print("Start Tree");
		tp.startTime = System.nanoTime();
		tp = new TreeProperty(np);
		tp.startTree(reply);
		np.ml.in(TupleId.BODY.id);
		np.ml.out(TupleId.BODY.id, reply);
		np.ml.in(TupleId.START.id, this);
	}

}