System.Diagnostics.Process.GetCurrentProcess().TotalProcessorTime - 进程使用的处理器时间(用户模式和内核模式).使用UserProcessorTime和PrivilegedProcessorTime表示单独的值.
System.Diagnostics.Process.GetCurrentProcess().StartTime- 与...结合的产量DateTime.Now过程的运行时间.
使用System.Diagnostics.StopWatch分析孤立的任务.
对于高级任务,您可以使用System.Diagnostics.PerformanceCounter.