Help with timing of functions

From: William Jones (hawaiiibuc_at_hawaii.rr.com)
Date: 11/22/03


Date: Sat, 22 Nov 2003 20:52:29 GMT

Aloha everyone,
  I'm in an algorithms class and we're studying various sorting algorithms.
what I'd like to do is, using the source code provided by the text book,
provide an analysis of the time elapsed when using an insertion, merge, and
heap sort. What I can't seem to find is the built-in C++ function for
timing the algorithm itself. I think I have to #include<math.h>, but am not
sure. Any help anyone can provide will be greatly appreciated.

Thanks in advance for any replies,

William Jones