Skip to content

Commit 50980d1

Browse files
committed
feat: add rankingTimePrecision and rankingTimeRounding field for SorterICPC config
1 parent 7114c23 commit 50980d1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

index.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,24 @@ export interface SorterICPC extends SorterBase {
581581
* @defaultValue 'floor'
582582
*/
583583
timeRounding?: 'floor' | 'ceil' | 'round';
584+
585+
/**
586+
* Time precision when calculating rankings.
587+
*
588+
* This will only affect the rankings.
589+
*
590+
* It is equivalent to converting the final total time to the target precision before calculating rankings of series.
591+
*
592+
* Using lower precision means there is a higher probability of ranking ties.
593+
* @defaultValue No converting, based on raw total time after calculating ranklist
594+
*/
595+
rankingTimePrecision?: TimeUnit;
596+
597+
/**
598+
* The rounding method of converting time unit to specified time precision when calculating rankings.
599+
* @defaultValue 'floor'
600+
*/
601+
rankingTimeRounding?: 'floor' | 'ceil' | 'round';
584602
};
585603
}
586604

0 commit comments

Comments
 (0)