home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1816 / test.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-28  |  365 b   |  26 lines

  1. #include "pmplib.h"
  2.  
  3. main()
  4. {
  5.  int i;
  6.  int j;
  7.  
  8.  /* pmpstartsig(1000): set the timer for every 1 millisecond. */
  9.  /* P: produce profiling information. */
  10.  /* pmp("test.out"): save pmp's results in test.out. */
  11.  
  12.  pmpstartsig(1000);
  13.  
  14.  for (i = 0;i < 1000;i++)
  15.   {
  16.    P;
  17.    for (j = 0;j < 1000;j++)
  18.     {
  19.      P;
  20.      if (i % 2)
  21.        P;
  22.     }
  23.   }
  24.  pmp("test.out");
  25. }
  26.