Returns the current time in either millis or nanos depending on the api level to be used with getElapsedMillis.