Process
class has many properties including: ExitCode
, ExitTime
, Id
, MachineName
, PagedMemorySize64
, ProcessorAffinity
, StandardInput
, StandardOutput
, StartTime
, Threads
, TotalProcessorTime
, and so on. You can find more information about Process Properties at https://msdn.microsoft.com/en-us/library/System.Diagnostics.Process_properties(v=vs.110).aspxStopwatch
class?Stopwatch
class can be accurate to within a nanosecond (a billionth of a second) but you shouldn't rely on that. You can improve accuracy by setting processor affinity as shown in the article at http://www.codeproject.com/Articles/61964/Performance-Tests-Precise-Run-Time-Measurements-wi.csproj
file?<ItemGroup> <ProjectReference Include="..Ch05_CalculatorCh05_Calculator.csproj" /> </ItemGroup>
3.15.226.120