>From: "Donal Devine" <[EMAIL PROTECTED]> >TimeSpan tsStart; >TimeSpan tsDuration; >GC.Collect(); >GC.WaitForPendingFinalizers(); >tsStart = Process.GetCurrentProcess().Threads[0].UserProcessorTime; >//Do stuff >tsDuration = Process.GetCurrentProcess().Threads[0].UserProcessorTime.Subtract(tsStart);
This seems like a good solution but I keep getting Access Denied when I try to access UserProcessTime, both from a component or aspx page, any ideas? Best Regards ---- Mattias Konradsson "Reinventing the wheel since 1977" You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.