hi im making a task manager and want to get cpu usage of a process
this is how my code looks now
For Each proc As System.Diagnostics.Process In pList
Dim lstStuff As ListViewItem = New ListViewItem()
lstStuff.Text = proc.Id.ToString
lstStuff.SubItems.Add(proc.ProcessName)
Try
lstStuff.SubItems.Add(proc.TotalProcessorTime.Milliseconds.ToString + "%")
Catch
End Try
lstStuff.SubItems.Add(proc.WorkingSet64.ToString())
lstStuff.SubItems.Add(proc.Responding.ToString)
ListView1.Items.Add(lstStuff)
Next
everything works but the cpu part it returns values over 100%