question on timing results
Matthew Miller
mattdm at mattdm.org
Wed Jun 8 14:30:23 UTC 2005
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 at mattdm.org <http://www.mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>
Current office temperature: 79 degrees Fahrenheit.
More information about the fedora-list
mailing list