| Index: base/time/time_posix.cc
|
| diff --git a/base/time/time_posix.cc b/base/time/time_posix.cc
|
| index ac0e99f7eb61b30de3eb16556f77869a8ee4704b..89a896ae4e8926433358181fab81c178c19f0b40 100644
|
| --- a/base/time/time_posix.cc
|
| +++ b/base/time/time_posix.cc
|
| @@ -338,6 +338,16 @@ bool Time::FromExploded(bool is_local, const Exploded& exploded, Time* time) {
|
| return false;
|
| }
|
|
|
| +Time Time::GetMaxPlatformTime() {
|
| + const int64_t max_seconds = (sizeof(SysTime) < sizeof(int64_t))
|
| + ? std::numeric_limits<SysTime>::max()
|
| + : std::numeric_limits<int32_t>::max();
|
| + int64_t milliseconds = max_seconds * kMillisecondsPerSecond;
|
| + milliseconds += (kMillisecondsPerSecond - 1);
|
| + return Time((milliseconds * kMicrosecondsPerMillisecond) +
|
| + kWindowsEpochDeltaMicroseconds);
|
| +}
|
| +
|
| // TimeTicks ------------------------------------------------------------------
|
| // static
|
| TimeTicks TimeTicks::Now() {
|
|
|