Index: base/time.h |
diff --git a/base/time.h b/base/time.h |
index 97010cbffc0e969062e435ebbf5d214fceb96a51..154a3d2e4fcd12a44aff8d6dfb2578332422de28 100644 |
--- a/base/time.h |
+++ b/base/time.h |
@@ -81,6 +81,11 @@ class BASE_EXPORT TimeDelta { |
return delta_; |
} |
+ // Returns true if this object has not been initialized. |
+ bool is_null() const { |
Yoyo Zhou
2012/07/31 09:57:32
I'm not sure this is right. A delta of 0 could act
Devlin
2012/07/31 16:43:40
Oooh, good point. I was wondering why there wasn't
|
+ return delta_ == 0; |
+ } |
+ |
#if defined(OS_POSIX) |
struct timespec ToTimeSpec() const; |
#endif |