Draft EIP proposes a SLOTDURATION opcode that pushes the current slot's duration in milliseconds onto the stack
Smart contracts could read how long the current slot lasts, which matters if Ethereum changes its block timing, though the draft still has open questions about current versus historical lookups.