From c6dd96e2018c07174e41d5263149e7e02f03b7c2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 2 Mar 2008 07:28:24 +0000 Subject: [PATCH] fixed a bug with start time display --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401916 --- tools/profiler/csharp/ProfReport.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/profiler/csharp/ProfReport.cs b/tools/profiler/csharp/ProfReport.cs index 88073834..580e2094 100644 --- a/tools/profiler/csharp/ProfReport.cs +++ b/tools/profiler/csharp/ProfReport.cs @@ -77,10 +77,12 @@ namespace profviewer { if (xml.Name.CompareTo("profile") == 0) { + int t; in_profile = true; m_duration = Double.Parse(xml.GetAttribute("uptime")); m_start_time = new DateTime(1970, 1, 1, 0, 0, 0); - m_start_time.AddSeconds(Int32.Parse(xml.GetAttribute("time"))); + t = Int32.Parse(xml.GetAttribute("time")); + m_start_time = m_start_time.AddSeconds(t); } else if (in_profile) {