Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Timer function in C++

Name: Ekce 2006-02-03 23:19

alright, so I got my program written out in c++, but I want to know how long it takes to run. So I'm wondering if anyone knows anysort of timer functions? I need the most time effecient one, granted it would only run once (or twice depending on the function), but there is still an emphasis on time. as for operating system I am using Yoper linux, I don't know if it matters, but I've heard it does.

Name: Anonymous 2006-02-03 23:29

If all you want is to find out how long it takes for the entire program to execute, there's an even easier way:

$ time a.out

Run that four times, and use the average of the last three runs.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List