mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 12:07:43 +00:00
Rename current_time() to now()
Follow C++11 naming conventions. No functional change.
This commit is contained in:
+2
-2
@@ -46,9 +46,9 @@ struct Log : public std::ofstream {
|
||||
|
||||
struct Time {
|
||||
int64_t msec() const { return time_to_msec(t); }
|
||||
int elapsed() const { return int(current_time().msec() - msec()); }
|
||||
int elapsed() const { return int(now().msec() - msec()); }
|
||||
|
||||
static Time current_time() { Time t; system_time(&t.t); return t; }
|
||||
static Time now() { Time t; system_time(&t.t); return t; }
|
||||
|
||||
private:
|
||||
sys_time_t t;
|
||||
|
||||
Reference in New Issue
Block a user