P pzhliaoyang Banned Dec 12, 2011 #1 Sub Delay(nMilliSecond As Long) Dim nBeginTime As Long Dim nEndTime As Long nEndTime = DateTime.Now + nMilliSecond nBeginTime = DateTime.Now Do While nBeginTime < nEndTime nBeginTime = DateTime.Now Log(nBeginTime) If nEndTime < nBeginTime Then Return End If DoEvents Loop End Sub
Sub Delay(nMilliSecond As Long) Dim nBeginTime As Long Dim nEndTime As Long nEndTime = DateTime.Now + nMilliSecond nBeginTime = DateTime.Now Do While nBeginTime < nEndTime nBeginTime = DateTime.Now Log(nBeginTime) If nEndTime < nBeginTime Then Return End If DoEvents Loop End Sub
T Tom Law Active Member Licensed User Longtime User Jan 2, 2012 #2 Thanks - that was useful.:sign0098: Upvote 0
Askjerry Member Licensed User Longtime User Apr 23, 2013 #3 What does the section... Code: Copy Log(nBeginTime) Do for the program... it seems to just send a lot of unused data to the console. Can it be removed or remarked out? Thanks, Jerry Upvote 0
What does the section... Code: Copy Log(nBeginTime) Do for the program... it seems to just send a lot of unused data to the console. Can it be removed or remarked out? Thanks, Jerry
Erel B4X founder Staff member Licensed User Longtime User Apr 24, 2013 #4 Can it be removed or remarked out? Click to expand... Yes. Upvote 0