Programming/C# & Unity
C# perfmon 샘플 코드
internal class Program { const string CategoryName = "JangHyeong"; const string CounterName = "Test"; static private bool looping = true; // 1초마다 0~99 사이의 값으로 카운터를 남긴다. static void Loop() { var random = new Random(); var counter = new PerformanceCounter(CategoryName, CounterName, false); while (looping) { counter.RawValue = random.Next(100); Thread.Sleep(1000); } } static void Main(string[] args..