History  | 
GiveTime (BASIC command) 
Purpose 
Suspends application processing and allows the server to re-enter. 
All applications are given about the same amount of processing time. If an application knows that it does not need all of its allotted time, it can use GiveTime to give up the remainder of its time to other server processes and applications. All database and field operations, and some commands, initiate their own server re-entrance. In these cases, there is no need to call the GiveTime command. 
This is a useful command for applications that are sometimes idle (for example, polling at set times). 
Syntax 
GiveTime 
Example 
starttime = Timer 
Do While TRUE 
        If Timer < starttime + 5 Then 
        GiveTime 
Else  
        Print "5 seconds have elapsed..." 
        starttime = Timer 
End If 
Loop 
 | ||