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

Unified Diff: base/profiler/tracked_time.h

Issue 9212025: Support use of third party time function to profiler (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 | « base/profiler/alternate_timer.cc ('k') | base/tracked_objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/profiler/tracked_time.h
===================================================================
--- base/profiler/tracked_time.h (revision 121705)
+++ base/profiler/tracked_time.h (working copy)
@@ -62,6 +62,8 @@
TrackedTime operator+(const Duration& other) const;
bool is_null() const;
+ static TrackedTime FromMilliseconds(int32 ms) { return TrackedTime(ms); }
+
private:
friend class Duration;
explicit TrackedTime(int32 ms);
« no previous file with comments | « base/profiler/alternate_timer.cc ('k') | base/tracked_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698