Log("Starting to compile...\n");
Process p = new Process();
p.StartInfo.FileName = CompilationCommand;
p.StartInfo.Arguments = SourceFileName;
p.Start();
Log("Compiling finished in " + (p.StartTime - p.ExitTime).Seconds + " seconds\n");
此代碼不起作用。我怎樣才能知道用g ++編譯器編譯C++源文件花了多少時間?C#System.Diagnostics.Process:確定C++編譯過程耗時多長時間
謝謝!這正是我所期待的。 – Alex 2010-09-13 10:55:12