日期:2014-05-18 浏览次数:21272 次
DateTime now = DateTime.Now; DateTime dt = now.AddSeconds(1); while(now<dt) { now.AddSeconds(1); }
------解决方案--------------------
Public Sub Waiting(ByVal seconds As Integer) Dim tmpNow As Date = Now While Now.Subtract(tmpNow).Seconds < seconds Application.DoEvents() End While End Sub