long startTime = 0;
long endTime = 0;
UUIDGen uuidgen = null;
uuidgen = UUIDGenFactory.getUUIDGen();
startTime = System.currentTimeMillis();
for (int i = 1; i <= 10; ++i) {
String u = uuidgen.nextUUID();
System.out.println(i + ": " + u);
}
endTime = System.currentTimeMillis();
System.out.println("UUIDGen took " + (endTime - startTime) + " milliseconds");