Article View: comp.os.ms-windows.programmer.misc
Article #2696function TIMING in Windows: HELP
From: Cherif Ahrikencheikh
Date: Mon, 11 Jan 1993 19:59
Date: Mon, 11 Jan 1993 19:59
12 lines
987 bytes
987 bytes
Is there any way I can time an algorithm that is part of a Windows application? For example, Unix allows finding the CPU time spent specifically on executing a given set of instructions. In Windows, I used the gettime function and computed the difference of the times at two points, and I get different results at different times, for the same points, the same data; I believe this is due to the fact that Windows continuously executes other tasks in the background, which explains the difference in the results. Please help!
Technical Details
Message-ID:
<1993Jan11.135908.11287@doug.cae.wisc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!saimiri.primate.wisc.edu!doug.cae.wisc.edu!ahrikencShow Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!saimiri.primate.wisc.edu!doug.cae.wisc.edu!ahrikenc From: ahrikenc@hprisc-12.cae.wisc.edu (Cherif Ahrikencheikh) Subject: function TIMING in Windows: HELP Distribution: usa Date: 11 Jan 93 13:59:08 CST Message-ID: <1993Jan11.135908.11287@doug.cae.wisc.edu> Originator: ahrikenc@hprisc-12.cae.wisc.edu Lines: 14