# wait(a)

Pauses execution for specified time in seconds

### Syntax

o_wait(a)
  a: scalar Real - number of seconds to sleep
  return: none

### Usage

Use this to delay execution of the next expression within a formula

### Location

menu: veeos ==> Coding ==> wait

library: codeLib

### Example

      // now wait for 5 seconds before continuing
      o_wait(5);

### Notes

This is seemingly identical to the Delay object, but is a function so that it can be used in expressions. This works via a direct call to the Windows Kernel. As discussed on VRF ca. 2004 (Georg Nied et al), it can be useful for resolving CPU loading issues.

### Reference

### Dependencies

- importCLib used to import kernel's sleep function

### Supported On

VEE 7.0+, Windows XP+

### See Also

© 2015-2017. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 24 February 2017 09:07.