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

Unified Diff: base/timer/elapsed_timer.h

Issue 2851493004: base: Make ElapsedTimer movable (Closed)
Patch Set: Use move constructor/operator= instead Created 3 years, 8 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 | base/timer/elapsed_timer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/timer/elapsed_timer.h
diff --git a/base/timer/elapsed_timer.h b/base/timer/elapsed_timer.h
index 592858a6e50d225967be99d46940467debad8bf6..9dfa12ccfeb36c752cdfaf7a35746b664bf2c000 100644
--- a/base/timer/elapsed_timer.h
+++ b/base/timer/elapsed_timer.h
@@ -15,6 +15,9 @@ namespace base {
class BASE_EXPORT ElapsedTimer {
public:
ElapsedTimer();
+ ElapsedTimer(ElapsedTimer&& other);
+
+ void operator=(ElapsedTimer&& other);
// Returns the time elapsed since object construction.
TimeDelta Elapsed() const;
« no previous file with comments | « no previous file | base/timer/elapsed_timer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698