raulmur / ORB_SLAM

A Versatile and Accurate Monocular SLAM
http://webdiis.unizar.es/~raulmur/orbslam/
Other
1.49k stars 813 forks source link

Time Execution #147

Open Toumi0812 opened 7 years ago

Toumi0812 commented 7 years ago

Hi everyone, Do you know how to compute the time execution of a specific part of code? For example, executing a sequence in ORB_SLAM, I would like to know the time execution of ORB Extraction?

Thanks

laxnpander commented 6 years ago

There are endless ways to do this. Why not get current time before execution, get current time after execution and then compute delta t and write to .txt?

Mechazo11 commented 1 year ago

I know this is kinda 5 years later, but what would be ideal wall time or cpu time? Referring to std::chrono library available from C++11 and onwards