home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4844 < prev    next >
Encoding:
Text File  |  1993-01-11  |  967 b   |  25 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!saimiri.primate.wisc.edu!doug.cae.wisc.edu!ahrikenc
  3. From: ahrikenc@hprisc-12.cae.wisc.edu (Cherif Ahrikencheikh)
  4. Subject: function TIMING in Windows: HELP
  5. Distribution: usa
  6. Date: 11 Jan 93 13:59:08 CST
  7. Message-ID: <1993Jan11.135908.11287@doug.cae.wisc.edu>
  8. Originator: ahrikenc@hprisc-12.cae.wisc.edu
  9. Lines: 14
  10.  
  11.  
  12. Is there any way I can time an algorithm that is part of a Windows
  13. application?  For example, Unix allows finding the CPU time spent
  14. specifically on executing a given set of instructions.
  15.  
  16. In Windows, I used the gettime function and computed the difference
  17. of the times at two points, and I get different results at different
  18. times, for the same points, the same data;  I believe this is due to
  19. the fact that Windows continuously executes other tasks in the 
  20. background, which explains the difference in the results.
  21.  
  22. Please help! 
  23.  
  24.  
  25.