home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 139 / c / dwarfs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1987-05-14  |  496 b   |  18 lines

  1. /*
  2.  * Profile test program - Hi ho, Hi ho !
  3.  */
  4.  
  5. main()
  6. {
  7.     dopey(), grumpy(), doc(), sleepy(),
  8.     bashful(), happy(), sneezy();
  9. }
  10.  
  11. dopey()   { long i; for( i=0; i<100000L; i++ ); }
  12. grumpy()  { long i; for( i=0; i<200000L; i++ ); }
  13. doc()     { long i; for( i=0; i<100000L; i++ ); }
  14. sleepy()  { long i; for( i=0; i<400000L; i++ ); }
  15. bashful() { long i; for( i=0; i<100000L; i++ ); }
  16. happy()   { long i; for( i=0; i<200000L; i++ ); }
  17. sneezy()  { long i; for( i=0; i<100000L; i++ ); }
  18.