public static void main(String[] args) {
TreeSet set = new TreeSet<>();
long start = System.currentTimeMillis();
for (int i = 1; i < 100001; i++) {
set.add(i);
}
long end = System.currentTimeMillis();
System.out.println(end-start);