Skip to content

Commit 908ab2c

Browse files
authored
Merge pull request #167 from icpc/i166-update-description-of-countdown_pause_time
Address issue #166 - Change description and typical use case of countdown_pause_time
2 parents 517c74b + 28c0860 commit 908ab2c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Contest_API.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ Properties of contest objects:
749749
| name | string | Short display name of the contest.
750750
| formal\_name | string ? | Full name of the contest. Defaults to value of `name`.
751751
| start\_time | TIME ? | The scheduled start time of the contest, may be `null` if the start time is unknown or the countdown is paused.
752-
| countdown\_pause\_time | RELTIME ? | The amount of seconds left when countdown to contest start is paused. At no time may both `start_time` and `countdown_pause_time` be non-`null`.
752+
| countdown\_pause\_time | RELTIME ? | The amount of time left when the countdown to the contest start was paused, if the contest countdown is paused, otherwise `null`.
753753
| duration | RELTIME | Length of the contest.
754754
| scoreboard\_freeze\_duration | RELTIME ? | How long the scoreboard is frozen before the end of the contest. Defaults to `0:00:00`.
755755
| scoreboard\_thaw\_time | TIME ? | The scheduled thaw time of the contest, may be `null` if the thaw time is unknown or not set.
@@ -759,11 +759,11 @@ Properties of contest objects:
759759
| logo | array of FILE ? | Logo for this contest, intended to be an image with aspect ratio near 1:1. Only allowed mime types are image/\*.
760760
| location | LOCATION ? | Location where the contest is held.
761761

762-
The expected/typical use of `countdown_pause_time` is that once a
763-
`start_time` is defined and close, the countdown may be paused due to
764-
unforeseen delays. In this case, `start_time` should be set to `null`
765-
and `countdown_pause_time` to the number of seconds left to count down.
766-
The `countdown_pause_time` may change to indicate approximate delay.
762+
The typical use of `countdown_pause_time` is when a contest director wishes to pause the countdown to the start of a contest. For example, this may occur because of technical
763+
issues or to make an announcement. When the contest countdown is paused, the value of `countdown_pause_time` should be set to the expected time remaining before the start of the contest after the pause is lifted.
764+
If `countdown_pause_time` is set, then the `start_time` must be set to `null`, thereby, setting an undefined `start_time` (the `start_time` is undefined since
765+
the length of the pause may be unknown).
766+
The `countdown_pause_time` may be changed to indicate the approximate delay until the contest starts.
767767
Countdown is resumed by setting a new `start_time` and resetting
768768
`countdown_pause_time` to `null`.
769769

0 commit comments

Comments
 (0)