Commit db26acd0 authored by legoc's avatar legoc
Browse files

Printing the time to get the configuration.

parent 64edb978
......@@ -18,6 +18,7 @@
package fr.ill.ics.nscclient.dataprovider;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
......@@ -137,10 +138,16 @@ public class ServantManagerAccessor {
.setDatabaseID(databaseID)
.build();
Date d1 = new Date();
servantManagerRequester.sendTwoParts(type.toByteArray(), request.toByteArray());
try {
ServantData response = ServantData.parseFrom(servantManagerRequester.receive());
byte[] data = servantManagerRequester.receive();
Date d2 = new Date();
System.out.println("Received and parsed whole configuration " + data.length + " in " + (d2.getTime() - d1.getTime()) + "ms");
ServantData response = ServantData.parseFrom(data);
return response;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment