| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Defines a wait period and allows for time controlled loops.
WaitPeriod( [<nTime>] ) --> lPeriodIsActive
The function returns .T. (true) while the period of <nTime> * 100 seconds has not elapsed since the initial call. After the wait period is over, the return value is .F. (false).
An initial call to WaitPeriad() defines a time span in 1/100 seconds. The function returns .T. (true) in subsequent calls until the wait period has elapsed. This allows for programming time controlled loops in this form:
WaitPeriod(100)
DO WHILE WaitPeriod()
<do something>
ENDDO
| See also: | MilliSec(), Seconds() |
| Category: | CT:DateTime , Date and time |
| Source: | ct\settime.c |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
http://www.xHarbour.com