Chromium Code Reviews| Index: base/time/time.cc |
| diff --git a/base/time/time.cc b/base/time/time.cc |
| index a9e4b1cf90aa61c031feaa05f52a01111090f431..bbed33b131c8726fd99e327e9bc3dc7f28cd0456 100644 |
| --- a/base/time/time.cc |
| +++ b/base/time/time.cc |
| @@ -189,6 +189,13 @@ bool Time::FromStringInternal(const char* time_string, |
| return true; |
| } |
| +// static |
| +TimeTicks TimeTicks::UnixEpoch() { |
| + static const TimeTicks ticks_unix_epoch = |
|
jar (doing other things)
2013/10/25 01:13:54
My guess is that you want a lazy singleton (probab
|
| + TimeTicks::Now() - (Time::Now() - Time::UnixEpoch()); |
| + return ticks_unix_epoch; |
| +} |
| + |
| // Time::Exploded ------------------------------------------------------------- |
| inline bool is_in_range(int value, int lo, int hi) { |