TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Kirby Thornton
from: Russell Coker
date: 1995-10-08 22:27:08
subject: Timing Algorithms.

KT>   I am currently taking an algorithm analysis course were we must time
KT>different implementations.  The thought of the day is to use the 
KT>"clock()" yet with very small time increments, the functions returns
KT>zero.  Not a lot of help since the program had to take sometime!  The 
KT>Unix camp is running a program called "time" prior to the
test program.

   The problem with time is that it will time the loading of the executable
which may vary significantly depending on fragmentation of hard drives.  If
you want accurate timing then run the algorithm hundreds of times in one
timing session to ensure that the time taken is well above the minimum
timing interval.


   cya
___
 X MR/2 2.0 NR X Me?  Buy from MICROSOFT?!  Not Today!  Not Tomorrow!

--- Maximus/2 2.02
* Origin: Multi - 61-3-9739-7145 - multi.apana.org.au (3:633/363)
SEEN-BY: 620/243 632/103 341 348 998 633/154 252 260 362 363 371 373 634/384
SEEN-BY: 635/301 502 503 638/102 639/100 640/820 690/660 711/409 410 413 430
SEEN-BY: 711/807 808 809 934 949 955 712/515 713/888 800/1 7877/2809
@PATH: 633/363 260 371 635/503 632/348 711/409 808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.