public void TimeD(long lngTD) { long tickCount = PCSC.GetTickCount(); long num; do { Application.DoEvents(); if (PCSC.GetTickCount() - tickCount < 0L) { tickCount = PCSC.GetTickCount(); } num = PCSC.GetTickCount() - tickCount; }while (num >= lngTD); }
public void TimeD(long lngTD) { long lngST = PCSC.GetTickCount(); long lngET; do { Application.DoEvents(); if (PCSC.GetTickCount() - lngST < 0L) { lngST = PCSC.GetTickCount(); } lngET = PCSC.GetTickCount() - lngST; }while (lngET >= lngTD); }