Some user-friendly timing objects allow you to time your C++ codes easily.