This will return the total time in milliseconds
long startTime = System.currentTimeMillis();
for(String id :ids) {
client.detail("US", id);
}
long endTime = System.currentTimeMillis();
long totalTime = endTime - startTime;
System.out.println(totalTime+"<--- total time");
long startTime = System.currentTimeMillis();
for(String id :ids) {
client.detail("US", id);
}
long endTime = System.currentTimeMillis();
long totalTime = endTime - startTime;
System.out.println(totalTime+"<--- total time");
No comments:
Post a Comment