Tracking elapsed time using nanotime instead of wall-clock system time in millis