Don't assume the type of Time::point

But instead use the proper definition. Also
rewrite chrono functions while there.

No functional change.
This commit is contained in:
Marco Costalba
2015-02-24 12:24:53 +01:00
parent 153fb216a1
commit 0b36ba74fc
6 changed files with 21 additions and 29 deletions

View File

@@ -144,7 +144,7 @@ void benchmark(const Position& current, istream& is) {
uint64_t nodes = 0;
Search::StateStackPtr st;
Time::point elapsed = Time::now();
TimePoint elapsed = now();
for (size_t i = 0; i < fens.size(); ++i)
{
@@ -163,7 +163,7 @@ void benchmark(const Position& current, istream& is) {
}
}
elapsed = Time::now() - elapsed + 1; // Ensure positivity to avoid a 'divide by zero'
elapsed = now() - elapsed + 1; // Ensure positivity to avoid a 'divide by zero'
dbg_print(); // Just before to exit