comparison src/main/java/alice/topology/manager/TopologyFinish.java @ 655:1c93e82e05c6 default tip

fix timestamp
author suruga
date Sat, 17 Feb 2018 00:33:00 +0900
parents aefbe41fcf12
children
comparison
equal deleted inserted replaced
654:2fbd6ac705df 655:1c93e82e05c6
4 import alice.datasegment.CommandType; 4 import alice.datasegment.CommandType;
5 import alice.datasegment.Receiver; 5 import alice.datasegment.Receiver;
6 6
7 public class TopologyFinish extends CodeSegment { 7 public class TopologyFinish extends CodeSegment {
8 public Receiver finish = ids.create(CommandType.TAKE); 8 public Receiver finish = ids.create(CommandType.TAKE);
9 public Receiver config = ids.create(CommandType.PEEK);
10 public Receiver startTime = ids.create(CommandType.TAKE);
9 @Override 11 @Override
10 public void run() { 12 public void run() {
13 TopologyManagerConfig conf = config.asClass(TopologyManagerConfig.class);
14 long start = startTime.asClass(Long.class);
15 if (conf.showTime) {
16 System.out.println("TopologymanagerTime = "+ (System.currentTimeMillis()-start));
17 }
11 System.exit(0); 18 System.exit(0);
12 } 19 }
13 20
14 } 21 }