Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3272)

Unified Diff: base/time.h

Issue 10834015: Add Startup Timing to CPM (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main.h » ('j') | chrome/browser/chrome_browser_main.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main.h » ('j') | chrome/browser/chrome_browser_main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698