diff options
Diffstat (limited to 'base/profiler/tracked_time.h')
-rw-r--r-- | base/profiler/tracked_time.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/profiler/tracked_time.h b/base/profiler/tracked_time.h index 6f4bc7e..5493e20 100644 --- a/base/profiler/tracked_time.h +++ b/base/profiler/tracked_time.h @@ -62,6 +62,8 @@ class BASE_EXPORT TrackedTime { // Similar to base::TimeTicks. 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); |