Sleep
New to Analytica 5.0
Sleep( seconds, untilTime )
Process any pending windows redraw events, and pause the computation for a specified number of seconds, or until a specified time. While paused, CPU resources are not used except when Windows events are processed.
Parameters:
- «seconds»: (Optional) Number of seconds to pause for. This can be a fraction, for example,
Sleep(50m)
pauses for 50 milliseconds: - «untilTime»: (Optional) A date-time value that it should wait until.
When called with no parameters, it processes any pending Windows redraw events. In general, when Analytica is computing and parts of windows need to be redrawn, or other user-interactions need to be processed, these are handled while the computation is in progress, but not always immediately, since the handling of these events is interspersed with the computation. Sleep()
or equivalently Sleep(0)
can be used to force these events to be flushed immediately.
When both parameters are specified, it sleeps until both criteria are satisfied.
Examples
TBD
Enable comment auto-refresher