Scheduler still not working

This commit is contained in:
2018-12-20 10:51:16 +01:00
parent 4b35c32845
commit 102e80537c
4 changed files with 12 additions and 6 deletions

View File

@ -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;
}