Index: tools/gn/command_gen.cc |
diff --git a/tools/gn/command_gen.cc b/tools/gn/command_gen.cc |
index f85a299b303d2fa89963c7fc21a0ccaaa04bc897..b4faaa59a5e5710f2b6fdc4fcb8a58134ca7c6a1 100644 |
--- a/tools/gn/command_gen.cc |
+++ b/tools/gn/command_gen.cc |
@@ -152,16 +152,14 @@ bool RunIdeWriter(const std::string& ide, |
Builder* builder, |
Err* err) { |
if (ide == kSwitchIdeValueVs) { |
- base::TimeTicks begin_vs_gen = base::TimeTicks::Now(); |
+ base::ElapsedTimer timer; |
bool res = |
VisualStudioWriter::RunAndWriteFiles(build_settings, builder, err); |
if (res && |
!base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kQuiet)) { |
- OutputString( |
- "Generating Visual Studio projects took " + |
- base::Int64ToString( |
- (base::TimeTicks::Now() - begin_vs_gen).InMilliseconds()) + |
- "ms\n"); |
+ OutputString("Generating Visual Studio projects took " + |
+ base::Int64ToString(timer.Elapsed().InMilliseconds()) + |
+ "ms\n"); |
} |
return res; |
} |