Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/Debugger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@ public static StackFrame ActiveFrame
}
set { _activeFrame = value; }
}
public static long ElapsedTime
{
get
{
var thr = ActiveThread;

return thr == null ? -1 : thr.ElapsedTime;
}
}

public static ExceptionInfo ActiveException
{
Expand Down Expand Up @@ -294,7 +303,7 @@ static void EnsureCreated()
Log.Notice("Inferior process '{0}' ('{1}') suspended",
ActiveProcess.Id, StringizeTarget());
Log.Emphasis(Utilities.StringizeFrame(ActiveFrame, true));

Log.Notice("Elapsed Time: {0}ms", String.Format("{0:n0}", ElapsedTime));
CommandLine.ResumeEvent.Set();
};

Expand Down Expand Up @@ -324,7 +333,6 @@ static void EnsureCreated()
}

Log.Emphasis(Utilities.StringizeFrame(ActiveFrame, true));

CommandLine.ResumeEvent.Set();
};

Expand Down