Hello,
How can I check the speed of running a code ? I use VS2010
24 hours are gone,has nobody answered ?
Get time at start. Get time at end. Difference between two is how long the code took to run.
Thanks,
Is there any clock that check in unit of nanoseconds,to see if the time needed by an algorithm to work ?
Yes, there is.
Look up the <ctime>
library on this site.
And about delaying,is it in the same library ? I really confused when load of codes run fast and hard to check.
1 2
|
#include <chrono>
#include <thread>
|
I don't have these 2 libraries in VS2010.
Last edited on