Rename current_time() to now()

Follow C++11 naming conventions.

No functional change.
This commit is contained in:
Marco Costalba
2012-09-02 16:39:01 +02:00
parent e6d8e74152
commit 5900ab76a0
6 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -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;