1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_METRICS_METRIC_EVENT_DURATION_DETAILS_H_ 6 #define CHROME_BROWSER_METRICS_METRIC_EVENT_DURATION_DETAILS_H_ 7 #pragma once 8 9 #include <string> 10 11 // Used when sending a notification about an event that occurred that we want 12 // to time. 13 struct MetricEventDurationDetails { 14 MetricEventDurationDetails(const std::string& e, int d) 15 : event_name(e), duration_ms(d) {} 16 17 std::string event_name; 18 int duration_ms; 19 }; 20 21 #endif // CHROME_BROWSER_METRICS_METRIC_EVENT_DURATION_DETAILS_H_ 22