System.Timers

Boeing

New Member
Hey all, still pretty new to ASP+, playing around with it... what I&#039d like to be able to do is time tasks using the System.Timers COM+ 2.0 class. So... I tried something just as simple as:<BR><BR><%@ Import Namespace="System" %><BR><%@ Import Namespace="System.Timers" %><BR><BR>and I get an error complaining that Timers is an invalid namespace:<BR>"The namespace or type &#039Timers&#039 for the import &#039System.Timers&#039 cannot be found."<BR><BR>The System.Timers.dll is safely tucked away in the COM+ directory... like I said, I&#039m still pretty new to this, so am I missing something obvious? Thanks!<BR>I think the System.Timers classes are more for scheduling and raising events at specific intervals or times.<BR><BR>The tracing capabilities of ASP can do what you are looking for. The introductary article on msdn explained briefly how to use tracing to see execution time of code blocks.<BR><BR>http://msdn.microsoft.com/msdnmag/issues/0900/ASPPlus/ASPPlus.aspThanks Stephen, that&#039s what I was looking for! :)
 
Back
Top