Index: base/time/time.h |
diff --git a/base/time/time.h b/base/time/time.h |
index b18c0b26d68c1bf8054b059278762fdc3491c62a..1824e89d9281954bce18313ca47b22267dab781c 100644 |
--- a/base/time/time.h |
+++ b/base/time/time.h |
@@ -233,6 +233,7 @@ BASE_EXPORT std::ostream& operator<<(std::ostream& os, TimeDelta time_delta); |
// Represents a wall clock time in UTC. |
class BASE_EXPORT Time { |
public: |
+ static const int64 kHoursPerDay = 24; |
static const int64 kMillisecondsPerSecond = 1000; |
static const int64 kMicrosecondsPerMillisecond = 1000; |
static const int64 kMicrosecondsPerSecond = kMicrosecondsPerMillisecond * |
@@ -241,6 +242,7 @@ class BASE_EXPORT Time { |
static const int64 kMicrosecondsPerHour = kMicrosecondsPerMinute * 60; |
static const int64 kMicrosecondsPerDay = kMicrosecondsPerHour * 24; |
Lei Zhang
2015/03/16 21:11:49
Since you are adding |kHoursPerDay|, can you use t
qiankun
2015/03/17 03:20:35
Done.
|
static const int64 kMicrosecondsPerWeek = kMicrosecondsPerDay * 7; |
+ static const int64 kMillisecondsPerDay = kMicrosecondsPerDay / 1000; |
Lei Zhang
2015/03/16 21:11:49
Can you put this in order - just under |kMilliseco
qiankun
2015/03/17 03:20:35
Done.
|
static const int64 kNanosecondsPerMicrosecond = 1000; |
static const int64 kNanosecondsPerSecond = kNanosecondsPerMicrosecond * |
kMicrosecondsPerSecond; |