BAP Online Manuals : Library Reference : Library by Name : wait
Previous: var
Next: wintitle

6.2.137. wait

suspends the current process for specified time

SYNOPSIS

wait(1000)

SYNTAX

wait(Ticks) (i)

ARGUMENTS

integer(Ticks) (i) suspends the process using the current priority time

DESCRIPTION

Suspends the current process for a certain time specified by Ticks in ticks of the current priority timer. As PROLOG processes usually run at low priority, a tick will take about 64 micro seconds. A second takes exactly 15625 ticks. After the specified time the process will be rescheduled.

EXAMPLE

write("Please wait..."),nl,
for(1,10,X),
	wait(15000),	% wait about a second
	write(X),nl,
	X = 10.

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

(none)


BAP Online Manuals : Library Reference : Library by Name : wait
Previous: var
Next: wintitle