Rev 169 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 169 | Rev 185 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad |
4 | Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad |
5 | Copyright (C) 2015- |
5 | Copyright (C) 2015-2019 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad |
6 | 6 | ||
7 | Stockfish is free software: you can redistribute it and/or modify |
7 | Stockfish is free software: you can redistribute it and/or modify |
8 | it under the terms of the GNU General Public License as published by |
8 | it under the terms of the GNU General Public License as published by |
9 | the Free Software Foundation, either version 3 of the License, or |
9 | the Free Software Foundation, either version 3 of the License, or |
10 | (at your option) any later version. |
10 | (at your option) any later version. |
Line 38... | Line 38... | ||
38 | void dbg_hit_on(bool c, bool b); |
38 | void dbg_hit_on(bool c, bool b); |
39 | void dbg_mean_of(int v); |
39 | void dbg_mean_of(int v); |
40 | void dbg_print(); |
40 | void dbg_print(); |
41 | 41 | ||
42 | typedef std::chrono::milliseconds::rep TimePoint; // A value in milliseconds |
42 | typedef std::chrono::milliseconds::rep TimePoint; // A value in milliseconds |
- | 43 | ||
- | 44 | static_assert(sizeof(TimePoint) == sizeof(int64_t), "TimePoint should be 64 bits"); |
|
43 | 45 | ||
44 | inline TimePoint now() { |
46 | inline TimePoint now() { |
45 | return std::chrono::duration_cast<std::chrono::milliseconds> |
47 | return std::chrono::duration_cast<std::chrono::milliseconds> |
46 | (std::chrono::steady_clock::now().time_since_epoch()).count(); |
48 | (std::chrono::steady_clock::now().time_since_epoch()).count(); |
47 | } |
49 | } |