wait(a)

Pauses execution for specified time in seconds


Syntax

  • 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
      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

    Supported On

    VEE 7.0+, Windows XP+

    See Also


    © 2015. All Rights Reserved.  Stan Bischof (stan@worldbadminton.com). Last updated 20 October 2015 20:38. © 2015.