The Selection Mode allows you to mark points in the function bars to measure the difference of cycles between those points. To mark a point in the bar:
A yellow vertical line appears displaying the number of cycles at that point.
A red vertical line appears displaying the number of cycles at that point along with the difference of cycles between two marked points.
You might view a difference in the time cycles displayed in the Timeline and the Critical Code viewer. The difference is caused by the events in the functions (in your source code) that have no new timestamp. For timeline, any instruction that has no timestamp information is considered to take one CPU cycle.