Index: base/time.cc |
=================================================================== |
--- base/time.cc (revision 26941) |
+++ base/time.cc (working copy) |
@@ -41,6 +41,11 @@ |
return delta_ / Time::kMicrosecondsPerMillisecond; |
} |
+int64 TimeDelta::InMillisecondsRoundedUp() const { |
+ return (delta_ + Time::kMicrosecondsPerMillisecond - 1) / |
+ Time::kMicrosecondsPerMillisecond; |
+} |
+ |
int64 TimeDelta::InMicroseconds() const { |
return delta_; |
} |