Skip to content
YosoiDocs

MaximumElapsed

yosoi.scalars.MaximumElapsed

class MaximumElapsed(ValidatedInteger):

Positive u64 elapsed budget measured in microseconds, not a timestamp.

Source: python/yosoi/scalars.py:323

ValidatedInteger

Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.

@classmethod
def default(cls) -> Self:

Return the Rust default elapsed budget in microseconds.

Source: python/yosoi/scalars.py:329

def as_microseconds(self) -> int:

Return the elapsed budget in microseconds without creating a deadline.

Source: python/yosoi/scalars.py:333

def to_capture_deadline(self) -> CaptureDeadline:

Convert the positive elapsed limit to a microsecond deadline.

Source: python/yosoi/scalars.py:337