freneticlib.stopcriteria.timer
Module Contents
Classes
All timing is in seconds |
- class freneticlib.stopcriteria.timer.TimeStop(random_time: int, total_time: int)[source]
Bases:
objectAll timing is in seconds
- Parameters:
random_time (int) – How many seconds of random search time to allow.
total_time (int) – How many seconds of total search time to allow.
- property is_over: bool
Returns: (bool): States whether the search budget has been used up.
- property is_random_phase: bool
Returns: (bool): States whether there is random search budget remaining.
- property elapsed_time: float
Returns: (float): How much time has passed since starting the timer.
- property remaining_time: float
Returns: (float): How much time there is left.