is_active

Timer.is_active(current_time: Time) bool

It checks if the simulation current_time is greater than or equal to start_time but lower than or equal to the sum of current_time and duration.

Parameters

current_timeTime

Current time of the simulation, to be compared with start_time and duration.

Returns

bool

Whether current_time is greater than or equal to start_time but lower than or equal to the sum of start_time and duration.

Raises

TypeError

If current_time is not an instance of Time.