Gecode::Search::TimeStop Class Reference
[Stop-objects for stopping search]
#include <search.hh>
Inherits Gecode::Search::Stop.
Detailed Description
Stop-object based on time
Definition at line 169 of file search.hh.
Public Member Functions | |
TimeStop (unsigned long int l) | |
Stop if search exceeds l milliseconds (from creation of this object). | |
unsigned long int | limit (void) const |
Return current limit in milliseconds. | |
void | limit (unsigned long int l) |
Set current limit to l milliseconds. | |
void | reset (void) |
Reset time to zero. | |
virtual bool | stop (const Statistics &s) |
Return true if time limit is exceeded. | |
Protected Attributes | |
clock_t | s |
Clock when execution should stop. | |
unsigned long int | l |
Current limit in milliseconds. |
Constructor & Destructor Documentation
|
Stop if search exceeds l milliseconds (from creation of this object).
|
Member Function Documentation
|
Return current limit in milliseconds.
|
|
Set current limit to l milliseconds.
|
|
Reset time to zero.
|
|
Return true if time limit is exceeded.
Implements Gecode::Search::Stop. |
Member Data Documentation
|
Clock when execution should stop.
|
|
Current limit in milliseconds.
|
The documentation for this class was generated from the following files:
- gecode/search.hh (Revision: 3516)
- gecode/search/stop.cc (Revision: 3511)
- gecode/search/stop.icc (Revision: 3511)