mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Rename current_time() to now()
Follow C++11 naming conventions. No functional change.
This commit is contained in:
@@ -201,7 +201,7 @@ void timed_wait(WaitCondition& sleepCond, Lock& sleepLock, int msec) {
|
||||
int tm = msec;
|
||||
#else
|
||||
timespec ts, *tm = &ts;
|
||||
uint64_t ms = Time::current_time().msec() + msec;
|
||||
uint64_t ms = Time::now().msec() + msec;
|
||||
|
||||
ts.tv_sec = ms / 1000;
|
||||
ts.tv_nsec = (ms % 1000) * 1000000LL;
|
||||
|
||||
Reference in New Issue
Block a user