home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / stringsearch / bmsource / sys / vax.c < prev   
Encoding:
C/C++ Source or Header  |  1990-11-21  |  225 b   |  21 lines  |  [TEXT/MPS ]

  1. #include    <sys/types.h>
  2. #include    <sys/times.h>
  3.  
  4. int hz = 60;
  5. double tcmp = 3.86;
  6.  
  7. static struct tms start;
  8.  
  9. startclock()
  10. {
  11.     times(&start);
  12. }
  13.  
  14. stopclock()
  15. {
  16.     struct tms t;
  17.  
  18.     times(&t);
  19.     return(t.tms_utime - start.tms_utime);
  20. }
  21.