MaximumElapsed
yosoi.scalars.MaximumElapsed
class MaximumElapsed(ValidatedInteger):
Positive u64 elapsed budget measured in microseconds, not a timestamp.
Source: python/yosoi/scalars.py:323
Base classes
Section titled “Base classes”Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.
Methods
Section titled “Methods”default
Section titled “default”@classmethod
def default(cls) -> Self:
Return the Rust default elapsed budget in microseconds.
Source: python/yosoi/scalars.py:329
as_microseconds
Section titled “as_microseconds”def as_microseconds(self) -> int:
Return the elapsed budget in microseconds without creating a deadline.
Source: python/yosoi/scalars.py:333
to_capture_deadline
Section titled “to_capture_deadline”def to_capture_deadline(self) -> CaptureDeadline:
Convert the positive elapsed limit to a microsecond deadline.