Round_repr.Internal_for_testsval round_and_offset :
Durations.t ->
level_offset:Period_repr.t ->
round_and_offset_raw Mavryk_protocol_environment_alpha.Error_monad.tzresultround_and_offset round_durations ~level_offset, where level_offset represents a time offset with respect to the start of the first round, returns a tuple (r, round_offset) where the round r is such that level_offset_of_round(r) <= level_offset < level_offset_of_round(r+1) and round_offset := level_offset - level_offset_of_round(r).
round = 0 1 2 3 r
|-----|-----|-----|-----|-----|--- ... ... --|--------|-- ... --|------- | round_delay(r) | | <-----> round_offset <---------------------------------------------------> level_offset