home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d0xx / d023 / microemacs.lha / Ver30 / Sys / Amiga / sleep.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-05-10  |  363 b   |  20 lines

  1. /*
  2.  * Name:    MicroEmacs
  3.  *        AmigaDOS sleep function
  4.  * Version:    31
  5.  * Last Edit:    18-Apr-86
  6.  * Created:    18-Apr-86 ...!ihnp4!seismo!ut-sally!ut-ngp!mic
  7.  */
  8.  
  9. /* There are really 60 ticks/second, but I don't want to wait that     */
  10. /* long when matching parentheses... */
  11. #define    TICKS    45
  12. extern    long Delay();
  13.  
  14. sleep(n)
  15. int n;
  16. {
  17.     if (n > 0)
  18.         Delay((long) n * TICKS);
  19. }
  20.