private long parseTime(String timeString)
    {
        long result = 0;
        if (classicTime)
        {
            String[] time = timeString.split(timeDelimiter);
            //HOUR, MINUTE, SECOND, MILLISECOND
            result = Integer.parseInt(time[0]);
            result *= 60; //now in minutes
            result += Integer.parseInt(time[1]);
            result *= 60; // now in seconds
            result += Integer.parseInt(time[2]);
            if (videoSection.getTimeUnit() == TimeUnit.MILLISECONDS)
            {
                result *= 1000; // now in milliseconds
                result += Integer.parseInt(time[3]);
            }
        }
        else
        {
            String[] time = timeString.split(" ");
            for (int i = 0; i < time.length; ++i)
            {
                result += parseValue(time[i]);
            }
            if (videoSection.getTimeUnit() == TimeUnit.SECONDS)
            {
                result /= 1000;
            }
        }
        return result;
    }