cpu 사용률 가저오기
*
Imports System.Threading

Imports System.Diagnostics
Public Class Form1
Dim cpuUsage As New PerformanceCounter("Processor", "% Processor Time", "_Total")
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick

Label1.Text = cpuUsage.NextValue()

End Sub

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub

End Class

이 게시물을

공유하기

SEARCH

MENU NAVIGATION