private long getCounterValue(long time) {
    return mCounter.getValueAtTime(Utilities.millisToSeconds(time));
  }
Gets the value of the counter at the specified time instant.

@param time time instant (milliseconds since epoch).
java/com/google/android/apps/authenticator/otp/TotpCountdownTask.java