Is there a way to get a more accurate time value, preferably to a nanosecond, using the system clock? I need to write a program that needs to output the time it takes various sorting algprithms to sort various numbers of integers. For smaller numbers of integers on algorithms like quicksort, and mergesort, I am getting 0 for the runtime. I need a function that I can call before the sort begins and after it ends that would return a time value, preferably to the nanosecond. Is there a library out there that can do this or is the answer right on my machine and I just haven't found it yet?
Ian Thomas -- FreeSoftware Developer and user of Debian GNU/Linux _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com