반응형 c# timespan1 [C#]시간 지연(Delay) 클래스 생성 및 사용 C#에서 시간 지연 클래스 생성 및 사용 관련하여 포스팅 하겠습니다. 1. 시간 지연(delay) 클래스 생성 ** 지정된 시간(ms) 만큼 딜레이를 주고 싶을 때 사용 public static class TimeSvcHelper { /// /// 지정된 시간만큼 지연 /// /// /// public static DateTime Delay(int MS) { DateTime ThisMoment = DateTime.Now; TimeSpan duration = new TimeSpan(0, 0, 0, 0, MS); DateTime AfterWards = ThisMoment.Add(duration); while (AfterWards >= ThisMoment) { System.Windows.Forms.Applic.. 2023. 1. 6. 이전 1 다음 반응형