using System.nanoTime() instead of GregorianCalender() for measuring
time