Module massa_models::timeslots
source · Expand description
management of the relation between time and slots
warning: assumes thread_count >= 1, t0_millis >= 1, t0_millis % thread_count == 0
Functions§
- Gets timestamp in milliseconds for given slot.
- TODO DOC
- Returns the thread and block slot index of the current block slot (inclusive), if any happened yet
- Returns the thread and block period index of the latest block slot at a given timestamp (inclusive), if any happened
- Counts the number of slots in a slot range [a, b)
- Turns an
MassaTime
range [start, end) with optional start/end to aSlot
range [start, end) with optional start/end