Polyman Documentation - v3.1.0
    Preparing search index...

    Function validateTimeLimitMultipliers

    • Checks config.timeLimitMultipliers before anything runs. A bad value must stop the command: if it only failed inside a run, the error would be read as an expected solution failure and verify could pass without the solution ever running.

      The field is optional. When it is set it must be an object whose keys are cpp, java or python, each a positive number, and the scaled limit must fit in a Node timer (MAX_TIME_LIMIT_MS).

      Parameters

      • config: default

        Configuration to check

      Returns void

      If the field is not an object, has an unknown key, has a factor that is not a positive number, or makes the limit too large

      validateTimeLimitMultipliers(config); // throws on { "java": 0 }