JNanoID generates compact IDs with just 21 characters. By using a larger alphabet than UUID, JNanoID can generate a greater number of unique IDs, when compared to UUID, with fewer characters (21 ...
If you want to time a segment of code you may do the following. Instantiating Timer is equivalent to Timer.start(). Timer t = new Timer(); String val = searchForStuff(); System.out.println("It took " ...