Get rid of struct Time

We just need the milliseconds of current system
time for our needs. This allows to simplify the
API.

No functional change.
This commit is contained in:
Marco Costalba
2012-09-04 09:38:51 +02:00
parent 5900ab76a0
commit b50ce5ebfb
6 changed files with 28 additions and 26 deletions

View File

@@ -111,7 +111,7 @@ void benchmark(const Position& current, istream& is) {
int64_t nodes = 0;
Search::StateStackPtr st;
Time time = Time::now();
Time::point t = Time::now();
for (size_t i = 0; i < fens.size(); i++)
{
@@ -133,7 +133,7 @@ void benchmark(const Position& current, istream& is) {
}
}
int e = time.elapsed() + 1; // Assure positive to avoid a 'divide by zero'
int e = Time::now() - t + 1; // Assure positive to avoid a 'divide by zero'
cerr << "\n==========================="
<< "\nTotal time (ms) : " << e