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

Side by Side Diff: chrome/browser/sync/test/integration/performance/sync_timing_helper.cc

Issue 1358513003: Use correct IntToString variants in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h" 5 #include "chrome/browser/sync/test/integration/performance/sync_timing_helper.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" 9 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h"
10 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" 10 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h"
(...skipping 27 matching lines...) Expand all
38 base::Time start = base::Time::Now(); 38 base::Time start = base::Time::Now();
39 EXPECT_TRUE(ProfileSyncServiceHarness::AwaitQuiescence(clients)); 39 EXPECT_TRUE(ProfileSyncServiceHarness::AwaitQuiescence(clients));
40 return base::Time::Now() - start; 40 return base::Time::Now() - start;
41 } 41 }
42 42
43 // static 43 // static
44 void SyncTimingHelper::PrintResult(const std::string& measurement, 44 void SyncTimingHelper::PrintResult(const std::string& measurement,
45 const std::string& trace, 45 const std::string& trace,
46 const base::TimeDelta& dt) { 46 const base::TimeDelta& dt) {
47 printf("*RESULT %s: %s= %s ms\n", measurement.c_str(), trace.c_str(), 47 printf("*RESULT %s: %s= %s ms\n", measurement.c_str(), trace.c_str(),
48 base::IntToString(dt.InMillisecondsF()).c_str()); 48 base::Int64ToString(dt.InMilliseconds()).c_str());
49 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698