[][src]Function libeyelink_sys::pump_delay

pub unsafe extern "C" fn pump_delay(delay: UINT32)

Similar to msec_delay(), but allows Widows message process only allows message processing if delay > 20 msec does not process dialog box messages During calls to \c msec_delay(), Windows is not able to handle messages. One result of this is that windows may not appear. This is the preferred delay function when accurate timing is not needed. It calls \c message_pump() until the last 20 milliseconds of the delay, allowing Windows to function properly. In rare cases, the delay may be longer than expected. It does not process modeless dialog box messages.

@param delay Number of milliseconds to delay.

\b Example:

\code
#include 

static void end_trial(void)
{
...

end_realtime_mode();
pump_delay(100);

stop_recording();
}
\endcode

\sa \c msec_delay() and \c message_pump()