wait¶
- typhoon.test.capture.wait(secs)¶
Waits a defined amount of seconds.
- Parameters:
secs (Timedelta-like or float) – Time to wait for. If float, it is considered as seconds. Works with anything that can be converted to timedelta.
- Returns:
time – Time after wait has elapsed.
- Return type:
Examples
>>> import typhoon.api.hil as hil >>> import typhoon.test.capture as capture >>> print(hil.get_sim_time()) >>> capture.wait(2) >>> print(hil.get_sim_time())