long (String line) { final int hours = Integer.parseInt(line.substring(HOURS_START, HOURS_START + 2)); final int minutes = Integer.parseInt(line.substring(MINUTES_START, MINUTES_START + 2)); final int seconds = Integer.parseInt(line.substring(SECONDS_START, SECONDS_START + 2)); final int millis = Integer.parseInt(line.substring(MILLIS_START, MILLIS_START + 3)); return millis + seconds * 1000L + minutes * 60000L + hours * 3600000L; }