Skip to content

Commit 9614f9f

Browse files
committed
add doc
1 parent 3614c83 commit 9614f9f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/commands.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This lists all subcommands and their most important options.
1414
- Problem development:
1515
- [`bt run [-v] [-t TIMELIMIT] [submissions [submissions ...]] [testcases [testcases ...]]`](#run)
1616
- [`bt test [-v] [-t TIMEOUT] submission [--interactive | --samples | [testcases [testcases ...]]]`](#test)
17+
- [`bt timelimit [-a] [-w] [submissions [submissions ...]] [testcases [testcases ...]]`](#timelimit)
1718
- [`bt generate [-v] [-t TIMEOUT] [--add] [--clean] [--check-deterministic] [--jobs JOBS] [--no-validators] [--no-visualizer] [testcases [testcases ...]]`](#generate)
1819
- [`bt pdf [-v] [--all] [--web] [--cp] [--no-timelimit]`](#pdf)
1920
- [`bt solutions [-v] [--web] [--cp] [--order ORDER]`](#solutions)
@@ -144,6 +145,21 @@ This is useful for running submissions without having to compile them manually.
144145
- `--samples`: Run the submission on the samples only. Can not be used together with explicitly listed testcases.
145146
- `--timeout <second>`/`-t <second>`: The timeout to use for the submission.
146147

148+
## `timelimit`
149+
150+
The `timelimit` command is used determine a timelimit based on `time_multiplier` and `time_safety_margin`.
151+
The syntax is:
152+
153+
```
154+
bt timelimit [<submissions and/or testcases>]
155+
```
156+
157+
**Flags**
158+
- `--write`/`-w`: write the determined timelimit to `.timelimit`
159+
- `--all`/`-a`: run all submissions not only AC and TLE submissions.
160+
- `<submission>`: The path to the submission to use to determine the timelimit. See `run <submissions>` for more.
161+
- `<testcases>`: The path to the testcases to use determine the timelimit. See `run <testcases>` for more.
162+
147163
## `generate`
148164

149165
Use the `generate` command to generate the testcases specified in `generators/generators.yaml`. The syntax of this file is described in [generators.md](generators.md) and [generators.yaml](generators.yaml) is an example.

0 commit comments

Comments
 (0)