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 2011-10-08 1:44

In C++11, there is std::chrono::high_resolution_clock which is typically accurate to nanoseconds on POSIX systems, or hundreds of nanoseconds on Windows.

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