OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "base/atomicops.h" | 5 #include "base/atomicops.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/timer/elapsed_timer.h" | 9 #include "base/timer/elapsed_timer.h" |
10 #include "tools/gn/build_settings.h" | 10 #include "tools/gn/build_settings.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 if (!CommandLine::ForCurrentProcess()->HasSwitch(kSwitchQuiet)) { | 108 if (!CommandLine::ForCurrentProcess()->HasSwitch(kSwitchQuiet)) { |
109 OutputString("Done. ", DECORATION_GREEN); | 109 OutputString("Done. ", DECORATION_GREEN); |
110 | 110 |
111 std::string stats = "Wrote " + | 111 std::string stats = "Wrote " + |
112 base::IntToString(static_cast<int>(write_counter)) + | 112 base::IntToString(static_cast<int>(write_counter)) + |
113 " targets from " + | 113 " targets from " + |
114 base::IntToString( | 114 base::IntToString( |
115 setup->scheduler().input_file_manager()->GetInputFileCount()) + | 115 setup->scheduler().input_file_manager()->GetInputFileCount()) + |
116 " files in " + | 116 " files in " + |
117 base::IntToString(elapsed_time.InMilliseconds()) + "ms\n"; | 117 base::Int64ToString(elapsed_time.InMilliseconds()) + "ms\n"; |
118 OutputString(stats); | 118 OutputString(stats); |
119 } | 119 } |
120 | 120 |
121 return 0; | 121 return 0; |
122 } | 122 } |
123 | 123 |
124 } // namespace commands | 124 } // namespace commands |
OLD | NEW |