home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / OL.LZH / PROCS.LZH / IPAUSE.ICN < prev    next >
Text File  |  1991-07-13  |  799b  |  32 lines

  1. ############################################################################
  2. #
  3. #    Name:     ipause.icn
  4. #
  5. #    Title:     pause within an Icon program
  6. #
  7. #    Author:     Richard L. Goerwitz
  8. #
  9. #    Date:     June 3, 1991
  10. #
  11. #    Version: 1.2
  12. #
  13. ############################################################################
  14. #
  15. #  Ipause(i) - pause i milliseconds (accuracy depends on the resolution
  16. #  of the system clock).  Would be nice if Icon had a nap() function, so
  17. #  that we didn't just have to loop.  Of course, for operating systems
  18. #  that don't support all this multitasking nonsense, ipause() will do
  19. #  just fine.
  20. #
  21. ############################################################################
  22.  
  23.  
  24. procedure ipause(i)
  25.  
  26.     local T
  27.     T := &time
  28.     until &time >= (T + i)
  29.     return
  30.  
  31. end
  32.