Scheduler still not working
This commit is contained in:
@ -86,8 +86,9 @@ public class SimpleTrader extends AbstractTrader implements EventListener{
|
||||
|
||||
@Override
|
||||
public long receive(Event task) {
|
||||
System.out.printf("Here we are !!! %f\n", getWorld().randNextFloat(12f, 27f));
|
||||
getWorld().schedule(this, 5000);
|
||||
// System.out.printf("Here we are !!! %f\n", getWorld().randNextFloat(12f, 27f));
|
||||
System.out.printf("Here we are: %d - %d (%d)\n",Thread.currentThread().getId(),System.nanoTime()/1000,task.t );
|
||||
getWorld().schedule(this, 1000);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user