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

Unified Diff: ui/base/events/event_utils.cc

Issue 11591006: Track input latency with UMA stats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added per event type histograms Created 7 years, 11 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 | « ui/base/events/event_utils.h ('k') | ui/base/gestures/gesture_recognizer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events/event_utils.cc
diff --git a/ui/base/events/event_utils.cc b/ui/base/events/event_utils.cc
index ef16fb9e473a4562eeed8d667f4a40b997540bf8..ac09854bbfb9319dc46ec2a018b1444212677993 100644
--- a/ui/base/events/event_utils.cc
+++ b/ui/base/events/event_utils.cc
@@ -20,4 +20,9 @@ int RegisterCustomEventType() {
return ++g_custom_event_types;
}
+base::TimeDelta EventTimeForNow() {
+ return base::TimeDelta::FromInternalValue(
+ base::TimeTicks::Now().ToInternalValue());
+}
+
} // namespace ui
« no previous file with comments | « ui/base/events/event_utils.h ('k') | ui/base/gestures/gesture_recognizer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698