Improve time managment

If we need some more and we are in time
advantage take it.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2008-09-18 10:32:12 +01:00
parent d583176baf
commit 18860cce40
3 changed files with 18 additions and 12 deletions

View File

@@ -123,7 +123,8 @@ void benchmark(const std::string& commandLine) {
for (it = positions.begin(); it != positions.end(); ++it)
{
Move moves[1] = {MOVE_NONE};
int dummy[2] = {0, 0};
Position pos(*it);
think(pos, true, false, 0, 0, 0, 0, 0, 0, secsPerPos * 1000, moves);
think(pos, true, false, 0, dummy, dummy, 0, 0, 0, secsPerPos * 1000, moves);
}
}