home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / ABUSESRC.ZIP / AbuseSrc / imlib / port / oldports / time_dos.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-23  |  340 b   |  20 lines

  1. #include <time.h>
  2. #include "timing.hpp"
  3. #include <dos.h>
  4.  
  5. time_marker::time_marker()
  6. {
  7.   micro_seconds=(long)clock();  
  8. }
  9.  
  10. double time_marker::diff_time(time_marker *other)
  11. {
  12.   return (double)(micro_seconds-other->micro_seconds)/(double)(CLOCKS_PER_SEC);  
  13. }
  14.  
  15. void milli_wait(unsigned wait_time)
  16. {
  17.   delay(wait_time);
  18. }
  19.  
  20.