OK, i need to measure how long it takes to get from the start to the end of a loop in C/C++. I either need to measure in milliseconds or measure how long it takes the console to buffer and output 1000000 lines.
Any help on either of these methods?
OK, i need to measure how long it takes to get from the start to the end of a loop in C/C++. I either need to measure in milliseconds or measure how long it takes the console to buffer and output 1000000 lines.
Any help on either of these methods?
Thanks a ton, that really helped. BTW i know this is kinda offtopic but does anyone know how to do something like this in Java? I have a project where im comparing computer languages and im also testing java.
Those who live by the sword get shot by those who don't.
I can C.
Compiler: gcc