On Wed, Jun 08, 2005 at 07:28:39AM -0700, Globe Trotter wrote: > > The bash commando 'time' gives real, user and system time of a command. > > see 'man time' for more information. > > Perhaps that could be usefull. > Thanks, however the issue is that it gives results on the entire program, > not the algorithm part. Matthew Miller indicates that clock() > approximately does what I want, so I will just use that. clock() or the more detailed-if-you-have-sub-processes times() call basically returns to your program exactly what the bash 'time' command would. -- Matthew Miller mattdm@xxxxxxxxxx <http://www.mattdm.org/> Boston University Linux ------> <http://linux.bu.edu/> Current office temperature: 79 degrees Fahrenheit.