is_active¶
- Timer.is_active(current_time: Time) bool
It checks if the simulation
current_timeis greater than or equal tostart_timebut lower than or equal to the sum ofcurrent_timeandduration.Parameters¶
current_timeTimeCurrent time of the simulation, to be compared with
start_timeandduration.
Returns¶
boolWhether
current_timeis greater than or equal tostart_timebut lower than or equal to the sum ofstart_timeandduration.
Raises
TypeErrorIf
current_timeis not an instance ofTime.