stopwatch (1) 썸네일형 리스트형 Stopwatch 클래스 사용하기 일반적으로 Stopwatch클래스는 어떠한 프레세스의 시간을 측정하는데 사용 됩니다. 그럼 간단한 예제를 살펴보겠습니다. using System; using System.Diagnostics; //Stopqwatch클래스가 포함된 네임스페이스입니다. using System.Threading; class Program { static void Main() { // Create new stopwatch Stopwatch stopwatch = new Stopwatch(); // Begin timing stopwatch.Start(); // Do something for (int i = 0; i < 1000; i++) { Thread.Sleep(1); } // Stop timing stopwatch.Stop().. 이전 1 다음