timing tests

does anyone know of a way to perform timing tests on line drawing algorithms? I have to time a dumb algorithm and also bresenham’s. Does C++ have a timing function something of that nature? Thanks

About 10 threads down from yours is another question about timers, with several responces. Does it not meet your needs? http://www.opengl.org/discussion_boards/ubb/Forum2/HTML/007227.html